mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
transcoding: Connect to the bus signals watch as the main watch might already be connected
This commit is contained in:
parent
161e0cee12
commit
40e3b5881a
1 changed files with 2 additions and 1 deletions
|
@ -367,7 +367,8 @@ main (int argc, gchar ** argv)
|
|||
}
|
||||
|
||||
bus = gst_element_get_bus (pipeline);
|
||||
gst_bus_add_watch (bus, bus_callback, mainloop);
|
||||
gst_bus_add_signal_watch (bus);
|
||||
g_signal_connect (bus, "message", (GCallback) bus_callback, mainloop);
|
||||
gst_object_unref (bus);
|
||||
|
||||
g_print ("Starting pipeline\n");
|
||||
|
|
Loading…
Reference in a new issue