[svn r942] put back timeout function trunk
authorrenatofilho
Fri Feb 29 19:03:41 2008 +0000 (2008-02-29)
branchtrunk
changeset 933604f1de8ee09
parent 932 58d43e2186ba
child 934 608cb47819c6
[svn r942] put back timeout function
gmyth-stream/gmencoder/src/gmencoder.c
     1.1 --- a/gmyth-stream/gmencoder/src/gmencoder.c	Thu Feb 28 08:10:55 2008 +0000
     1.2 +++ b/gmyth-stream/gmencoder/src/gmencoder.c	Fri Feb 29 19:03:41 2008 +0000
     1.3 @@ -708,7 +708,7 @@
     1.4      if (priv->timeout_id != 0) {
     1.5          g_source_remove (priv->timeout_id);
     1.6      }
     1.7 -    //priv->timeout_id = g_timeout_add(GMENCODER_TIMEOUT, _process_timeout_cb, self);
     1.8 +    priv->timeout_id = g_timeout_add(GMENCODER_TIMEOUT, _process_timeout_cb, self);
     1.9  }
    1.10  
    1.11  void
    1.12 @@ -1237,6 +1237,8 @@
    1.13          priv->timeout_id = 0;
    1.14      }
    1.15  
    1.16 +    priv->timeout_id = g_timeout_add(GMENCODER_TIMEOUT, _process_timeout_cb, user_data);
    1.17 +
    1.18      if (priv->send_chunked) {
    1.19          if (_send_buffer (priv->handle, GST_BUFFER_DATA (buff), GST_BUFFER_SIZE (buff)) == FALSE)
    1.20              goto error;