Fix the issue that short black glitch when switching bandwidth.
[framework/web/webkit-efl.git] / Source / WebCore / platform / graphics / gstreamer / tizen / VideoLayerTizen.cpp
index 401497f..94a719d 100644 (file)
@@ -179,6 +179,9 @@ void VideoLayerTizen::setOverlay(IntSize size)
     m_platformSurface = SharedVideoPlatformSurfaceTizen::create(size);
     m_platformSurface->setVideoPlatformSurfaceUpdateListener(this);
 
+    if (m_platformSurfaceToBeRemoved)
+        m_platformSurface->copySurface(m_platformSurfaceToBeRemoved.get());
+
     gst_x_overlay_set_window_handle(GST_X_OVERLAY(m_videoSink), m_platformSurface->id());
 #if !USE(ACCELERATED_VIDEO_VAAPI)
     g_object_set(m_videoSink, "rotate", 0, NULL);