When state of vaapisink is changed from PLAYING to NULL, the handle_events
flag is set to FALSE, and never recovered, and then event thread is never
going to run.
So we should allow to set the flag only when users try it.
https://bugzilla.gnome.org/show_bug.cgi?id=782543
{
GstVaapiSink *const sink = GST_VAAPISINK (overlay);
+ sink->handle_events = handle_events;
gst_vaapisink_set_event_handling (sink, handle_events);
}
return;
GST_OBJECT_LOCK (sink);
- sink->handle_events = handle_events;
if (handle_events && !sink->event_thread) {
/* Setup our event listening thread */
GST_DEBUG ("starting xevent thread");