GstElement *mux;
GstTagSetter *setter;
gchar *launch_str;
+ guint bus_watch = 0;
GST_DEBUG ("testing xmp muxing on : %s", muxer);
bus = gst_element_get_bus (pipeline);
fail_unless (bus != NULL);
- gst_bus_add_watch (bus, bus_handler, loop);
+ bus_watch = gst_bus_add_watch (bus, bus_handler, loop);
gst_object_unref (bus);
gst_element_set_state (pipeline, GST_STATE_READY);
g_main_loop_unref (loop);
g_object_unref (mux);
g_object_unref (pipeline);
+ g_source_remove (bus_watch);
}
/*
gint comparison;
GstElement *demux;
gchar *launch_str;
+ guint bus_watch = 0;
GST_DEBUG ("testing tags : %s", tag_str);
bus = gst_element_get_bus (pipeline);
fail_unless (bus != NULL);
- gst_bus_add_watch (bus, bus_handler, loop);
+ bus_watch = gst_bus_add_watch (bus, bus_handler, loop);
gst_object_unref (bus);
sent_tags = gst_structure_from_string (tag_str, NULL);
g_main_loop_unref (loop);
g_object_unref (demux);
g_object_unref (pipeline);
+ g_source_remove (bus_watch);
}
/*