MMCAM_LOG_WARNING("Handle is NULL. Set xid as 0.. but, it's not recommended.");
gst_video_overlay_set_window_handle(GST_VIDEO_OVERLAY(vsink), 0);
}
-#ifdef _MMCAMCORDER_RM_SUPPORT
- /* set the videosink using the virtual device id instead of the real id (main=0, sub=1) */
- MMCAMCORDER_G_OBJECT_SET(vsink, "device-scaler", hcamcorder->returned_devices.device_id[1]);
-#endif /* _MMCAMCORDER_RM_SUPPORT */
} else if (!strcmp(videosink_name, "evasimagesink") || !strcmp(videosink_name, "evaspixmapsink")) {
MMCAM_LOG_INFO("videosink : %s, handle : %p", videosink_name, dp_handle);
MMCAM_LOG_WARNING("Handle is NULL. skip setting.");
}
} else if (!strcmp(videosink_name, "directvideosink")) {
+#ifdef _MMCAMCORDER_RM_SUPPORT
+ /* set the videosink using the virtual device id instead of the real id (main=0, sub=1) */
+ MMCAM_LOG_INFO("device-scaler : %d", hcamcorder->returned_devices.device_id[1]);
+ MMCAMCORDER_G_OBJECT_SET(vsink, "device-scaler", hcamcorder->returned_devices.device_id[1]);
+#endif /* _MMCAMCORDER_RM_SUPPORT */
if (dp_handle) {
window_info = (MMCamWindowInfo *)dp_handle;
MMCAM_LOG_INFO("wayland global surface id : %d, x,y,w,h (%d,%d,%d,%d)",
} else {
MMCAM_LOG_WARNING("dp_handle is null");
}
-#ifdef _MMCAMCORDER_RM_SUPPORT
- /* set the videosink using the virtual device id instead of the real id (main=0, sub=1) */
- MMCAM_LOG_INFO("device-scaler : %d", hcamcorder->returned_devices.device_id[1]);
- MMCAMCORDER_G_OBJECT_SET(vsink, "device-scaler", hcamcorder->returned_devices.device_id[1]);
-#endif /* _MMCAMCORDER_RM_SUPPORT */
} else {
MMCAM_LOG_WARNING("Who are you?? (Videosink: %s)", videosink_name);
}