From 7834088822084250b0c871aa9d112c98806029d6 Mon Sep 17 00:00:00 2001 From: Marko Ollonen Date: Fri, 8 Feb 2013 16:20:58 +0200 Subject: [PATCH] initialise horisontal flip only to secondary camera. Change-Id: I23b72b315ab3cdf3388ab45bb7a785ec1e8ce7d9 --- gst/mfldv4l2cam/v4l2camsrc_calls.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/mfldv4l2cam/v4l2camsrc_calls.c b/gst/mfldv4l2cam/v4l2camsrc_calls.c index 57f6bc1..17e5a09 100644 --- a/gst/mfldv4l2cam/v4l2camsrc_calls.c +++ b/gst/mfldv4l2cam/v4l2camsrc_calls.c @@ -3786,7 +3786,8 @@ gst_v4l2camsrc_libmfldcam_init (GstMFLDV4l2CamSrc * v4l2camsrc) v4l2camsrc->videodev); gst_v4l2camsrc_set_attribute (GST_CAMERA_SRC (v4l2camsrc),V4L2_CID_VFLIP,v4l2camsrc->vflip); - gst_v4l2camsrc_set_attribute (GST_CAMERA_SRC (v4l2camsrc),V4L2_CID_HFLIP,v4l2camsrc->hflip); + if (v4l2camsrc->input_sensor == GST_CAMERA_INPUT_SENSOR_SECONDARY) + gst_v4l2camsrc_set_attribute (GST_CAMERA_SRC (v4l2camsrc),V4L2_CID_HFLIP,v4l2camsrc->hflip); v4l2camsrc->initialized = TRUE; v4l2camsrc->is_open = TRUE; -- 2.7.4