diff options
author | Haihua Hu <jared.hu@nxp.com> | 2016-04-19 10:51:14 +0800 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-04-19 09:36:09 +0300 |
commit | 7027a3533769a777fe6c15f83288accb0ef68dcf (patch) | |
tree | 47376ae1f5d653da01a8926650e90aa81d8c8486 /ext | |
parent | fa397dd90dbddc4dc6262c2513a6b37417bf3e15 (diff) | |
download | gstreamer-plugins-bad-7027a3533769a777fe6c15f83288accb0ef68dcf.tar.gz |
glimagesink: need to clean window_id when state change form READY to NULL
When application change pipeline state NULL->READY and then READY->NULL,
glimagesink will not clear glsink->window_id. After that, when application
change state NULL->READY, the new_window_id is equal to window_id, glimagesink
will not set window handle. It will use the internal window but not the window
create by application.
https://bugzilla.gnome.org/show_bug.cgi?id=765241
Diffstat (limited to 'ext')
-rw-r--r-- | ext/gl/gstglimagesink.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/gl/gstglimagesink.c b/ext/gl/gstglimagesink.c index 3b5e3b50b..970228c7a 100644 --- a/ext/gl/gstglimagesink.c +++ b/ext/gl/gstglimagesink.c @@ -1045,6 +1045,8 @@ gst_glimage_sink_change_state (GstElement * element, GstStateChange transition) gst_object_unref (glimage_sink->context); glimage_sink->context = NULL; } + + glimage_sink->window_id = 0; if (glimage_sink->other_context) { gst_object_unref (glimage_sink->other_context); |