From 403e0024f11cec97d5431b27addef0ce6831205b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Cerveau?= Date: Tue, 6 Apr 2021 14:55:39 +0200 Subject: [PATCH] playback-test: fix seek crash check that app->seek_format exists before seeking. Part-of: --- tests/examples/playback/playback-test.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/examples/playback/playback-test.c b/tests/examples/playback/playback-test.c index d7907fc765..350f338d11 100644 --- a/tests/examples/playback/playback-test.c +++ b/tests/examples/playback/playback-test.c @@ -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));