From: Sebastian Dröge Date: Mon, 18 Jun 2018 05:51:05 +0000 (+0300) Subject: playback-test: Add support for start_type=stop_type=NONE seeks X-Git-Tag: 1.19.3~511^2~690 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=42b752754219ec457bb445ec14a76e6bd3111f7c;p=platform%2Fupstream%2Fgstreamer.git playback-test: Add support for start_type=stop_type=NONE seeks --- diff --git a/tests/examples/playback/playback-test.c b/tests/examples/playback/playback-test.c index b310e4b..d7907fc 100644 --- a/tests/examples/playback/playback-test.c +++ b/tests/examples/playback/playback-test.c @@ -578,6 +578,9 @@ do_seek (PlaybackApp * app, GstFormat format, gint64 position) g_warning ("Instant rate change seek not supported with flushing"); return; } + } else if (position == GST_CLOCK_TIME_NONE) { + start_type = stop_type = GST_SEEK_TYPE_NONE; + start = stop = GST_CLOCK_TIME_NONE; } else if (app->rate < 0) { stop = position; start = 0; @@ -658,6 +661,8 @@ advanced_seek_button_cb (GtkButton * button, PlaybackApp * app) pos = g_ascii_strtoll (text, &endptr, 10); if (endptr != text && pos != G_MAXINT64 && pos != G_MININT64) { do_seek (app, fmt, pos); + } else if (strlen (text) == 0) { + do_seek (app, fmt, GST_CLOCK_TIME_NONE); } }