summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2018-06-18 08:51:05 +0300
committerSebastian Dröge <sebastian@centricular.com>2018-06-18 08:51:05 +0300
commite37b2453fbced2a9a15b171cadf56d602c19333e (patch)
tree4d9583dfd447fcfbf21718febfa32861304eef07
parent778b56f061a2d1b301cbe52c6d4cbf6aa292cc52 (diff)
playback-test: Add support for start_type=stop_type=NONE seeksinstant-rate-change
-rw-r--r--tests/examples/playback/playback-test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/examples/playback/playback-test.c b/tests/examples/playback/playback-test.c
index 3500f1ae2..f1585f5c3 100644
--- a/tests/examples/playback/playback-test.c
+++ b/tests/examples/playback/playback-test.c
@@ -576,6 +576,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;
@@ -656,6 +659,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);
}
}