# HG changeset patch # User renatofilho # Date 1204638673 0 # Node ID 1ac1550f69b6dc0418199871d899c39a974ef077 # Parent 1418e08cee7a10cdf5460f6c3bcd929840827be6 [svn r949] clear timeout function when gst emit error diff -r 1418e08cee7a -r 1ac1550f69b6 gmyth-stream/gmencoder/src/gmencoder.c --- a/gmyth-stream/gmencoder/src/gmencoder.c Mon Mar 03 17:38:32 2008 +0000 +++ b/gmyth-stream/gmencoder/src/gmencoder.c Tue Mar 04 13:51:13 2008 +0000 @@ -1064,6 +1064,11 @@ gchar *debug; gchar *err_str; + if (priv->timeout_id != 0) { + g_source_remove (priv->timeout_id); + priv->timeout_id = 0; + } + if (priv->tick_id != 0) { g_source_remove(priv->tick_id); priv->tick_id = 0;