transcoding: Connect to the bus signals watch as the main watch might already be connected

This commit is contained in:
Thibault Saunier 2013-08-15 15:59:22 +02:00 committed by Thiago Santos
parent 161e0cee12
commit 40e3b5881a

View file

@ -367,7 +367,8 @@ main (int argc, gchar ** argv)
} }
bus = gst_element_get_bus (pipeline); 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); gst_object_unref (bus);
g_print ("Starting pipeline\n"); g_print ("Starting pipeline\n");