}
}
+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;
g_signal_connect (bus, "message::new-clock", (GCallback) message_received,
pipeline);
+ g_signal_connect (bus, "message::clock-lost", (GCallback) msg_clock_lost,
+ pipeline);
g_signal_connect (bus, "message::error", (GCallback) message_received,
pipeline);
g_signal_connect (bus, "message::warning", (GCallback) message_received,