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

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Thu Apr 2 13:30:57 EEST 2009
Author: schulhof
Date: 2009-04-02 13:30:57 +0300 (Thu, 02 Apr 2009)
New Revision: 17988

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:29:09 UTC (rev 17987)
+++ projects/haf/trunk/hildon-welcome/src/tmp.c	2009-04-02 10:30:57 UTC (rev 17988)
@@ -120,16 +120,18 @@
       gst_message_unref(msg);
     }
 
+    GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS(GST_BIN(pipeline), GST_DEBUG_GRAPH_SHOW_ALL, "playdetails");
+
+    gst_element_set_state(new_bin, GST_STATE_NULL);
+    g_print("play_file: Removing %s from pipeline\n", gst_element_get_name(new_bin));
+    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);
 
-    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);
   }
 }
 


More information about the maemo-commits mailing list