playback-test: add window title
authorStéphane Cerveau <scerveau@collabora.com>
Fri, 23 Apr 2021 12:45:07 +0000 (14:45 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 29 Apr 2021 23:47:05 +0000 (23:47 +0000)
If playbin mode, display the current uri

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1122>

tests/examples/playback/playback-test.c

index 350f338..cbaed94 100644 (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? */