#ifdef GST_TIZEN_GL_PLATFORM_EGL
#ifdef GST_TIZEN_USE_EGLIMAGE
-#ifndef GST_TIZEN_USE_NATIVE_FORMATS
+#ifdef GST_TIZEN_USE_NATIVE_FORMATS
+ this->eglDestroyImage (this->egl_display, out_egl_image);
+#else
memcpy (out_data, this->output_image_ptr, this->output_frame_buffer_size);
#endif
#else
#ifdef GST_TIZEN_USE_NATIVE_FORMATS
if ((out_buf = gst_buffer_new ())) {
- surface = tbm_surface_internal_create_with_flags (GST_VIDEO_INFO_WIDTH(&info), GST_VIDEO_INFO_HEIGHT(&info), TBM_FORMAT_ARGB8888, TBM_BO_WC);
- out_mem = gst_tizen_allocator_alloc_surface (this->allocator, &info, surface, surface, _buffer_finalize);
+ surface = tbm_surface_internal_create_with_flags (GST_VIDEO_INFO_WIDTH(&info),
+ GST_VIDEO_INFO_HEIGHT(&info), TBM_FORMAT_ARGB8888, TBM_BO_WC);
+ out_mem = gst_tizen_allocator_alloc_surface (this->allocator,
+ &info, surface, surface, _buffer_finalize);
gst_buffer_append_memory (out_buf, out_mem);
#else
if ((out_buf = gst_buffer_new_allocate (NULL,