waylandsink/demo: Use playbin3 instead of playbin

Video looping currently does not work reliably with the later
and playbin3 is generally considered the better choice.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8561>
This commit is contained in:
Robert Mader 2025-02-26 10:39:06 +01:00 committed by GStreamer Marge Bot
parent 0e9d6f7e42
commit 970bfc335e

View file

@ -245,7 +245,7 @@ main (int argc, char **argv)
d->argv = argv;
d->current_uri = 1;
d->pipeline = gst_parse_launch ("playbin video-sink=waylandsink", NULL);
d->pipeline = gst_parse_launch ("playbin3 video-sink=waylandsink", NULL);
g_object_set (d->pipeline, "uri", argv[d->current_uri], NULL);
/* enable looping */