diff -r 7da2a5e32fa6 -r b937c837e929 gmyth-stream/gmemcoder/src/main.c --- a/gmyth-stream/gmemcoder/src/main.c Thu Apr 26 22:33:00 2007 +0100 +++ b/gmyth-stream/gmemcoder/src/main.c Fri May 11 14:41:11 2007 +0100 @@ -37,6 +37,7 @@ _mencoder_error_cb (GMencoder *mencoder, const gchar* msg, gpointer data) { g_print ("Error: %s\n", msg); + g_mencoder_close_stream (mencoder); g_main_loop_quit ((GMainLoop *) data); } @@ -151,10 +152,8 @@ g_debug ("RUNNING.."); g_main_loop_run (mainloop); - - g_mencoder_close_stream (coder); + g_debug ("DONE"); g_object_unref (coder); - return 0; }