wayland gstreamer demo not able to relaunch animation of waylandsink
This is about the gstreamer wayland demo (https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/tests/examples/waylandsink or https://github.com/swt2c/gst-wayland-gtk-demo as standalone for fedora).
There is a problem with the "Ready" and "Null" buttons:
The "Null" button clears the output and leaves it black, the "Ready" button relaunches the animation from the default state. In weston, this works well, in gnome shell the window content stays black (occasionally it works one time to relaunch the animation, but not more). The "Playing" and "Paused" buttons work well though.
I haven't yet investigated deeper what happens, but the problematic code part in the demo app seem to be:
static void
ready_clicked_cb (GtkButton * button, DemoApp * d)
{
gst_element_set_state (d->pipeline, GST_STATE_READY);
}
static void
null_clicked_cb (GtkButton * button, DemoApp * d)
{
gst_element_set_state (d->pipeline, GST_STATE_NULL);
}
The includes of the demo are:
#include <gst/gst.h>
#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include <gdk/gdkwayland.h>
#include <gst/video/videooverlay.h>
More information to follow.
System: fedora 28, mutter 3.28/3.29.90, intel ivybridge, mesa 18.1.3