mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
playback-test: Add support for start_type=stop_type=NONE seeks
This commit is contained in:
parent
ba49b94c52
commit
42b7527542
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue