From 106a0f09af273cb744a3178320ec52f80a1441f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 22 Feb 2013 11:23:16 +0100 Subject: [PATCH] eglglessink: Store a reference to the last_buffer if using EGLImages --- ext/eglgles/gsteglglessink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/eglgles/gsteglglessink.c b/ext/eglgles/gsteglglessink.c index e1de4b6bbe..77b419cd33 100644 --- a/ext/eglgles/gsteglglessink.c +++ b/ext/eglgles/gsteglglessink.c @@ -830,7 +830,7 @@ gst_eglglessink_stop (GstEglGlesSink * eglglessink) } eglglessink->last_flow = GST_FLOW_FLUSHING; - eglglessink->last_buffer = NULL; + gst_buffer_replace (&eglglessink->last_buffer, NULL); if (eglglessink->using_own_window) { platform_destroy_native_window (gst_egl_display_get @@ -2223,7 +2223,7 @@ gst_eglglessink_upload (GstEglGlesSink * eglglessink, GstBuffer * buf) if (got_gl_error ("glEGLImageTargetTexture2DOES")) goto HANDLE_ERROR; } - eglglessink->last_buffer = buf; + gst_buffer_replace (&eglglessink->last_buffer, buf); eglglessink->stride[0] = 1; eglglessink->stride[1] = 1; eglglessink->stride[2] = 1;