# HG changeset patch # User renatofilho # Date 1204311821 0 # Node ID 604f1de8ee0929c155bf45d4fa52859a29bd5dec # Parent 58d43e2186baf87917e9ed782c382ae56f7df92f [svn r942] put back timeout function diff -r 58d43e2186ba -r 604f1de8ee09 gmyth-stream/gmencoder/src/gmencoder.c --- a/gmyth-stream/gmencoder/src/gmencoder.c Thu Feb 28 08:10:55 2008 +0000 +++ b/gmyth-stream/gmencoder/src/gmencoder.c Fri Feb 29 19:03:41 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;