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

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

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:25:30 UTC (rev 17984)
+++ projects/haf/trunk/hildon-welcome/src/tmp.c	2009-04-02 10:26:33 UTC (rev 17985)
@@ -24,12 +24,10 @@
   gst_element_link(src, sinks[VIDEO_SINK]);
 #endif /* HAVE_VIDEO */
   gst_element_link(src, sinks[AUDIO_SINK]);
-
-  GST_DEBUG_BIN_TO_DOT_FILE(GST_BIN(g_object_get_data(G_OBJECT(sinks[AUDIO_SINK]), "pipeline")), GST_DEBUG_GRAPH_SHOW_ALL, "playdetails");
 }
 
 static GstElement *
-create_bin(char *fname, GstElement *sinks[2], GstElement *pipeline)
+create_bin(char *fname, GstElement *sinks[2])
 {
   static int counter = 0;
   char *name = NULL;
@@ -46,8 +44,6 @@
   gst_bin_add_many(GST_BIN(bin), filesrc, decodebin2, NULL);
   gst_element_link(filesrc, decodebin2);
 
-  g_object_set_data(G_OBJECT(sinks[AUDIO_SINK]), "pipeline", pipeline);
-
   return bin;
 }
 
@@ -63,7 +59,7 @@
     GstMessage *msg = NULL;
     GstElement *new_bin = NULL;
 
-    new_bin = create_bin(audio, sinks, pipeline);
+    new_bin = create_bin(audio, sinks);
     gst_bin_add(GST_BIN(pipeline), new_bin);
     gst_element_set_state(pipeline, GST_STATE_PAUSED);
     gst_element_send_event(pipeline,
@@ -124,6 +120,9 @@
       gst_message_unref(msg);
     }
 
+    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);
 
@@ -132,8 +131,6 @@
     gst_bus_set_flushing(bus, FALSE);
     gst_object_unref(bus);
   }
-
-  g_print("play_file: === Exiting with \"%s\"\n", audio);
 }
 
 int


More information about the maemo-commits mailing list