]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gstreamer0-10.git/blobdiff - gst/gstpipeline.c
check/gst/gstbin.c: Add bus to bin.
[glsdk/gstreamer0-10.git] / gst / gstpipeline.c
index 94c1ee4d57bab7b7e14ab91dfe61d85432739972..c18aa9648f8351c4b07c5315bc0497220e34518f 100644 (file)
@@ -153,9 +153,14 @@ static void
 gst_pipeline_init (GTypeInstance * instance, gpointer g_class)
 {
   GstPipeline *pipeline = GST_PIPELINE (instance);
+  GstBus *bus;
 
   pipeline->delay = DEFAULT_DELAY;
   pipeline->play_timeout = DEFAULT_PLAY_TIMEOUT;
+
+  bus = g_object_new (gst_bus_get_type (), NULL);
+  gst_element_set_bus (GST_ELEMENT_CAST (pipeline), bus);
+  gst_object_unref (bus);
 }
 
 static void