[svn r949] clear timeout function when gst emit error trunk
authorrenatofilho
Tue Mar 04 13:51:13 2008 +0000 (2008-03-04)
branchtrunk
changeset 9401ac1550f69b6
parent 939 1418e08cee7a
child 941 2394aa79ef69
[svn r949] clear timeout function when gst emit error
gmyth-stream/gmencoder/src/gmencoder.c
     1.1 --- a/gmyth-stream/gmencoder/src/gmencoder.c	Mon Mar 03 17:38:32 2008 +0000
     1.2 +++ b/gmyth-stream/gmencoder/src/gmencoder.c	Tue Mar 04 13:51:13 2008 +0000
     1.3 @@ -1064,6 +1064,11 @@
     1.4              gchar          *debug;
     1.5              gchar          *err_str;
     1.6  
     1.7 +	    if (priv->timeout_id != 0) {
     1.8 +                g_source_remove (priv->timeout_id);
     1.9 +		priv->timeout_id = 0;
    1.10 +            }
    1.11 +
    1.12              if (priv->tick_id != 0) {
    1.13                  g_source_remove(priv->tick_id);
    1.14                  priv->tick_id = 0;