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:04:11 +0200
commitaaaf8d2b426b87a68b98127046d21fa519469f45 (patch)
tree4027bc4204bdf0e6440a82a28ea1d9dbe356b264
parent7e25936fe22352e7b0eded3857ad8f39296ec170 (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 013a4690..d01c7277 100644
--- a/gst/vaapi/gstvaapisink.c
+++ b/gst/vaapi/gstvaapisink.c
@@ -588,6 +588,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);
}
@@ -934,7 +935,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");