summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyunjun Ko <zzoon@igalia.com>2017-05-12 13:08:30 +0900
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2017-05-12 17:13:07 +0200
commit1714489cde6bc2c34659abb1ca9b677612ffafc7 (patch)
treec9622cb83ebc118dad3cec34b09385e9229900fb
parent97007d1d922531229143c72124321436a00cc5b2 (diff)
vaapisink: keep handle_events flag except that if user want to set
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
-rw-r--r--gst/vaapi/gstvaapisink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/vaapi/gstvaapisink.c b/gst/vaapi/gstvaapisink.c
index fb68be55..bb1c3bac 100644
--- a/gst/vaapi/gstvaapisink.c
+++ b/gst/vaapi/gstvaapisink.c
@@ -584,6 +584,7 @@ gst_vaapisink_video_overlay_set_event_handling (GstVideoOverlay * overlay,
{
GstVaapiSink *const sink = GST_VAAPISINK (overlay);
+ sink->handle_events = handle_events;
gst_vaapisink_set_event_handling (sink, handle_events);
}
@@ -930,7 +931,6 @@ gst_vaapisink_set_event_handling (GstVaapiSink * sink, gboolean 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");