[maemo-commits] [maemo-commits] r17986 - projects/haf/trunk/hildon-welcome/src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Thu Apr 2 13:28:36 EEST 2009
Author: schulhof
Date: 2009-04-02 13:28:35 +0300 (Thu, 02 Apr 2009)
New Revision: 17986

Modified:
   projects/haf/trunk/hildon-welcome/src/tmp.c
Log:


Modified: projects/haf/trunk/hildon-welcome/src/tmp.c
===================================================================
--- projects/haf/trunk/hildon-welcome/src/tmp.c	2009-04-02 10:26:33 UTC (rev 17985)
+++ projects/haf/trunk/hildon-welcome/src/tmp.c	2009-04-02 10:28:35 UTC (rev 17986)
@@ -120,16 +120,16 @@
       gst_message_unref(msg);
     }
 
+    /* Flush the bus before unrefing */
+    gst_bus_set_flushing(bus, TRUE);
+    gst_bus_set_flushing(bus, FALSE);
+    gst_object_unref(bus);
+
     GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS(GST_BIN(pipeline), GST_DEBUG_GRAPH_SHOW_ALL, "playdetails");
     g_print("play_file: === Exiting with \"%s\"\n", audio);
 
     gst_element_set_state(new_bin, GST_STATE_NULL);
     gst_bin_remove(GST_BIN(pipeline), new_bin);
-
-    /* Flush the bus before unrefing */
-    gst_bus_set_flushing(bus, TRUE);
-    gst_bus_set_flushing(bus, FALSE);
-    gst_object_unref(bus);
   }
 }
 


More information about the maemo-commits mailing list