GstBus *bus;
GMainLoop *loop;
guint n_buffers = G_MAXUINT;
+ guint bus_watch = 0;
caps1 =
gst_video_format_new_caps (GST_VIDEO_FORMAT_xRGB, 640, 480, 25, 1, 1, 1);
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);
n_buffers = 0;
g_main_loop_unref (loop);
gst_caps_unref (caps1);
gst_caps_unref (caps2);
+ g_source_remove (bus_watch);
}
GST_END_TEST;
GstBus *bus;
GMainLoop *loop;
guint n_buffers = G_MAXUINT;
+ guint bus_watch = 0;
caps1 =
gst_video_format_new_caps (GST_VIDEO_FORMAT_xRGB, 640, 480, 25, 1, 1, 1);
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);
fail_unless_equals_int (gst_element_set_state (pipeline, GST_STATE_PAUSED),
g_main_loop_unref (loop);
gst_caps_unref (caps1);
gst_caps_unref (caps2);
+ g_source_remove (bus_watch);
}
GST_END_TEST;
GstBus *bus;
GMainLoop *loop;
guint n_buffers = G_MAXUINT;
+ guint bus_watch = 0;
caps1 =
gst_video_format_new_caps (GST_VIDEO_FORMAT_xRGB, 640, 480, 25, 1, 1, 1);
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);
fail_unless_equals_int (gst_element_set_state (pipeline, GST_STATE_PAUSED),
g_main_loop_unref (loop);
gst_caps_unref (caps1);
gst_caps_unref (caps2);
+ g_source_remove (bus_watch);
}
GST_END_TEST;
GstBus *bus;
GMainLoop *loop;
guint n_buffers = G_MAXUINT;
+ guint bus_watch = 0;
caps1 =
gst_video_format_new_caps (GST_VIDEO_FORMAT_xRGB, 640, 480, 25, 1, 1, 1);
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);
fail_unless_equals_int (gst_element_set_state (pipeline, GST_STATE_PAUSED),
g_main_loop_unref (loop);
gst_caps_unref (caps1);
gst_caps_unref (caps2);
+ g_source_remove (bus_watch);
}
GST_END_TEST;
GstBus *bus;
GMainLoop *loop;
guint n_buffers = G_MAXUINT;
+ guint bus_watch = 0;
caps1 =
gst_video_format_new_caps (GST_VIDEO_FORMAT_xRGB, 640, 480, 25, 1, 1, 1);
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);
fail_unless_equals_int (gst_element_set_state (pipeline, GST_STATE_PAUSED),
g_main_loop_unref (loop);
gst_caps_unref (caps1);
gst_caps_unref (caps2);
+ g_source_remove (bus_watch);
}
GST_END_TEST;
GstBus *bus;
GMainLoop *loop;
guint n_buffers = G_MAXUINT;
+ guint bus_watch = 0;
caps1 =
gst_video_format_new_caps (GST_VIDEO_FORMAT_xRGB, 640, 480, 25, 1, 1, 1);
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);
fail_unless_equals_int (gst_element_set_state (pipeline, GST_STATE_PAUSED),
g_main_loop_unref (loop);
gst_caps_unref (caps1);
gst_caps_unref (caps2);
+ g_source_remove (bus_watch);
}
GST_END_TEST;
GMainLoop *loop;
GstFormat fmt = GST_FORMAT_TIME;
gint64 position;
+ guint bus_watch = 0;
caps1 =
gst_video_format_new_caps (GST_VIDEO_FORMAT_xRGB, 640, 480, 25, 1, 1, 1);
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);
fail_unless_equals_int (gst_element_set_state (pipeline, GST_STATE_PAUSED),
g_main_loop_unref (loop);
gst_caps_unref (caps1);
gst_caps_unref (caps2);
+ g_source_remove (bus_watch);
}
GST_END_TEST;