diff -r e8e3219edf5f -r d389914210cf gmyth-stream/gmencoder/src/gmencoder.c --- a/gmyth-stream/gmencoder/src/gmencoder.c Wed Feb 27 11:00:07 2008 +0000 +++ b/gmyth-stream/gmencoder/src/gmencoder.c Mon Mar 03 13:11:54 2008 +0000 @@ -708,7 +708,7 @@ if (priv->timeout_id != 0) { g_source_remove (priv->timeout_id); } - //priv->timeout_id = g_timeout_add(GMENCODER_TIMEOUT, _process_timeout_cb, self); + priv->timeout_id = g_timeout_add(GMENCODER_TIMEOUT, _process_timeout_cb, self); } void @@ -1237,6 +1237,8 @@ priv->timeout_id = 0; } + priv->timeout_id = g_timeout_add(GMENCODER_TIMEOUT, _process_timeout_cb, user_data); + if (priv->send_chunked) { if (_send_buffer (priv->handle, GST_BUFFER_DATA (buff), GST_BUFFER_SIZE (buff)) == FALSE) goto error;