emotion: Properly unmap video frame
authorChris Michael <cp.michael@samsung.com>
Wed, 11 Oct 2017 13:21:48 +0000 (09:21 -0400)
committerChris Michael <cp.michael@samsung.com>
Wed, 11 Oct 2017 13:21:48 +0000 (09:21 -0400)
Calls to gst_video_frame_unmap should take a GstVideoFrame as a
parameter (not a buffer). I believe this was the intended function
here (to unmap the video frame), so fix the call to not pass a
GstBuffer.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/modules/emotion/gstreamer1/emotion_sink.c

index f0bc0ef..6f2e4af 100644 (file)
@@ -450,7 +450,7 @@ emotion_video_sink_main_render(void *data)
           }
         else
           {
-             gst_video_frame_unmap(buffer);
+             gst_video_frame_unmap(&(send->vframe));
              priv->vfmapped = EINA_FALSE;
           }
         gst_buffer_unref(buffer);