From 12e5e2b7e80455cda9519d56501434b7a10f847e Mon Sep 17 00:00:00 2001 From: Xavi Artigas Date: Mon, 11 Jun 2012 12:12:31 +0200 Subject: [PATCH] Some reordering to match the tutorial's explanations. --- gst-sdk/tutorials/basic-tutorial-12.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gst-sdk/tutorials/basic-tutorial-12.c b/gst-sdk/tutorials/basic-tutorial-12.c index 99ef74ff30..a1f0808be9 100644 --- a/gst-sdk/tutorials/basic-tutorial-12.c +++ b/gst-sdk/tutorials/basic-tutorial-12.c @@ -28,11 +28,6 @@ static void cb_message (GstBus *bus, GstMessage *msg, CustomData *data) { gst_element_set_state (data->pipeline, GST_STATE_READY); g_main_loop_quit (data->loop); break; - case GST_MESSAGE_CLOCK_LOST: - /* Get a new clock */ - gst_element_set_state (data->pipeline, GST_STATE_PAUSED); - gst_element_set_state (data->pipeline, GST_STATE_PLAYING); - break; case GST_MESSAGE_BUFFERING: { gint percent = 0; @@ -48,6 +43,11 @@ static void cb_message (GstBus *bus, GstMessage *msg, CustomData *data) { gst_element_set_state (data->pipeline, GST_STATE_PLAYING); break; } + case GST_MESSAGE_CLOCK_LOST: + /* Get a new clock */ + gst_element_set_state (data->pipeline, GST_STATE_PAUSED); + gst_element_set_state (data->pipeline, GST_STATE_PLAYING); + break; default: /* Unhandled message */ break;