Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stéphane Cerveau committed Apr 23, 2021
1 parent 3676a2c commit 403e002
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/examples/playback/playback-test.c
Expand Up @@ -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));
Expand Down

0 comments on commit 403e002

Please sign in to comment.