waylandsink : init values for tizen_viewport_set_source
authorHyunil <hyunil46.park@samsung.com>
Thu, 22 Sep 2016 04:38:05 +0000 (13:38 +0900)
committerHyunil <hyunil46.park@samsung.com>
Thu, 22 Sep 2016 04:38:05 +0000 (13:38 +0900)
Change-Id: I3d95fb7f10c8919b88f86c0bd8c04c67fe69bee0
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
ext/wayland/gstwaylandsink.c

index d160724..90ba883 100755 (executable)
@@ -1521,6 +1521,9 @@ gst_wayland_sink_set_caps (GstBaseSink * bsink, GstCaps * caps)
     goto unsupported_format;
 
 #ifdef TIZEN_FEATURE_WLSINK_ENHANCEMENT
+  /* init value for set source */
+  sink->crop_x = sink->crop_y = sink->crop_w = sink->crop_h = 0;
+
   if (sink->USE_TBM) {
     if (GST_VIDEO_INFO_FORMAT (&info) == GST_VIDEO_FORMAT_SN12 ||
         GST_VIDEO_INFO_FORMAT (&info) == GST_VIDEO_FORMAT_ST12) {