playback-test: fix seek crash

check that app->seek_format exists before seeking.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1095>
This commit is contained in:
Stéphane Cerveau 2021-04-06 14:55:39 +02:00
parent 3676a2c6de
commit 403e0024f1

View file

@ -654,6 +654,9 @@ advanced_seek_button_cb (GtkButton * button, PlaybackApp * app)
const gchar *text;
gchar *endptr;
if (!app->seek_format)
return;
fmt = app->seek_format->value;
text = gtk_entry_get_text (GTK_ENTRY (app->seek_entry));