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:
parent
3676a2c6de
commit
403e0024f1
@ -654,6 +654,9 @@ advanced_seek_button_cb (GtkButton * button, PlaybackApp * app)
|
|||||||
const gchar *text;
|
const gchar *text;
|
||||||
gchar *endptr;
|
gchar *endptr;
|
||||||
|
|
||||||
|
if (!app->seek_format)
|
||||||
|
return;
|
||||||
|
|
||||||
fmt = app->seek_format->value;
|
fmt = app->seek_format->value;
|
||||||
|
|
||||||
text = gtk_entry_get_text (GTK_ENTRY (app->seek_entry));
|
text = gtk_entry_get_text (GTK_ENTRY (app->seek_entry));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user