From: Stefan Sauer Date: Mon, 21 May 2012 06:01:09 +0000 (+0200) Subject: playback-test: remove not needed state-change X-Git-Tag: 1.19.3~511^2~6459 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=db3a4b424caae729819b567b0319798713273179;p=platform%2Fupstream%2Fgstreamer.git playback-test: remove not needed state-change We go back to paused if needed (scrubbing in paused) in stop_seek(). --- diff --git a/tests/examples/playback/playback-test.c b/tests/examples/playback/playback-test.c index 5f09acd..3aac187 100644 --- a/tests/examples/playback/playback-test.c +++ b/tests/examples/playback/playback-test.c @@ -171,7 +171,7 @@ typedef struct gint64 buffering_left; GstState state; guint update_id; - guint seek_timeout_id; + guint seek_timeout_id; /* Used for scrubbing in paused */ gulong changed_id; guint fill_id; @@ -539,11 +539,6 @@ static void seek_cb (GtkRange * range, PlaybackApp * app) { gint64 real; - /* If the timer hasn't expired yet, then the pipeline is running */ - if (app->play_scrub && app->seek_timeout_id != 0) { - GST_DEBUG ("do scrub seek, PAUSED"); - gst_element_set_state (app->pipeline, GST_STATE_PAUSED); - } real = gtk_range_get_value (GTK_RANGE (app->seek_scale)) * app->duration /