playback-test: add window title

If playbin mode, display the current uri

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1122>
This commit is contained in:
Stéphane Cerveau 2021-04-23 14:45:07 +02:00 committed by GStreamer Marge Bot
parent 1ca747436f
commit 9b6a425aa4

View file

@ -3380,7 +3380,8 @@ create_ui (PlaybackApp * app)
} else {
playbin = NULL;
}
if (app->pipeline_type == 0)
gtk_window_set_title (GTK_WINDOW (app->window), app->current_path->data);
/* do the packing stuff ... */
gtk_window_set_default_size (GTK_WINDOW (app->window), 250, 96);
/* FIXME: can we avoid this for audio only? */