From: Matthieu Bouron Date: Tue, 29 Oct 2013 15:36:06 +0000 (+0000) Subject: avfvideosrc: check if low preset is available X-Git-Tag: 1.19.3~507^2~12983 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fae79751ad864b64a0be5de5c70d407e5985af97;p=platform%2Fupstream%2Fgstreamer.git avfvideosrc: check if low preset is available --- diff --git a/sys/applemedia/avfvideosrc.m b/sys/applemedia/avfvideosrc.m index 9667f5e..f7f4b6d 100644 --- a/sys/applemedia/avfvideosrc.m +++ b/sys/applemedia/avfvideosrc.m @@ -295,7 +295,8 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer continue; } - gst_caps_append (result, GST_AVF_CAPS_NEW (gstformat, 192, 144)); + if ([session canSetSessionPreset:AVCaptureSessionPresetLow]) + gst_caps_append (result, GST_AVF_CAPS_NEW (gstformat, 192, 144)); if ([session canSetSessionPreset:AVCaptureSessionPreset352x288]) gst_caps_append (result, GST_AVF_CAPS_NEW (gstformat, 352, 288)); if ([session canSetSessionPreset:AVCaptureSessionPresetMedium])