[tizenwlsink] Unref the last buffer before rendering the NULL buffer 81/252381/2
authorHyunil <hyunil46.park@samsung.com>
Wed, 27 Jan 2021 08:29:21 +0000 (17:29 +0900)
committerHyunil <hyunil46.park@samsung.com>
Wed, 27 Jan 2021 09:20:18 +0000 (18:20 +0900)
[Version] 1.16.2-20
[Issue Type] Bug fix

Change-Id: I5987fd0d0f4727d2c3fb1cf505d9660c4a02d472
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
packaging/gst-plugins-tizen.spec
tizenwlsink/src/gsttizenwlsink.c

index 01cfb4b..7876e7e 100644 (file)
@@ -5,7 +5,7 @@
 Name:       gst-plugins-tizen
 Version:    1.16.2
 Summary:    GStreamer tizen plugins (common)
-Release:    19
+Release:    20
 Group:      Multimedia/Framework
 Url:        http://gstreamer.freedesktop.org/
 License:    LGPL-2.1+
index 15ac829..c0721e0 100644 (file)
@@ -654,6 +654,10 @@ gst_tizen_wl_sink_stop_video (GstTizenWlSink * sink)
 {
   FUNCTION;
   g_return_if_fail (sink != NULL);
+
+  if (sink->last_buffer)
+    gst_buffer_unref (sink->last_buffer);
+
   gst_wl_window_render (sink->window, NULL, NULL);
 }