Commit db20c378 authored by Wim Taymans's avatar Wim Taymans

seek: handle clock-lost messages

When we receive a clock-lost message we need to pause and play to select a new
parent 4f896852
......@@ -2144,6 +2144,15 @@ msg_buffering (GstBus * bus, GstMessage * message, GstPipeline * data)
static void
msg_clock_lost (GstBus * bus, GstMessage * message, GstPipeline * data)
g_print ("clock lost! PAUSE and PLAY to select a new clock\n");
gst_element_set_state (pipeline, GST_STATE_PAUSED);
gst_element_set_state (pipeline, GST_STATE_PLAYING);
#ifdef HAVE_X
static guint embed_xid = 0;
......@@ -2210,6 +2219,8 @@ connect_bus_signals (GstElement * pipeline)
g_signal_connect (bus, "message::new-clock", (GCallback) message_received,
g_signal_connect (bus, "message::clock-lost", (GCallback) msg_clock_lost,
g_signal_connect (bus, "message::error", (GCallback) message_received,
g_signal_connect (bus, "message::warning", (GCallback) message_received,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment