From 8dc688b039df3025c6807628793a9cc1cc99a067 Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Mon, 13 Apr 2015 17:28:45 +0100 Subject: [PATCH] examples: no need to set intermediate states --- tests/examples/seek/scrubby.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/examples/seek/scrubby.c b/tests/examples/seek/scrubby.c index c49d42c522..ac5720b5e5 100644 --- a/tests/examples/seek/scrubby.c +++ b/tests/examples/seek/scrubby.c @@ -324,8 +324,6 @@ play_cb (GtkButton * button, gpointer data) gst_element_get_state (pipeline, &state, NULL, GST_CLOCK_TIME_NONE); if (state != GST_STATE_PLAYING) { g_print ("PLAY pipeline\n"); - gst_element_set_state (pipeline, GST_STATE_PAUSED); - gst_element_get_state (pipeline, NULL, NULL, GST_CLOCK_TIME_NONE); gst_element_set_state (pipeline, GST_STATE_PLAYING); update_id = g_timeout_add (UPDATE_INTERVAL, (GSourceFunc) update_scale, pipeline);