mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
avfvideosrc: check if low preset is available
This commit is contained in:
parent
7f807270fa
commit
fae79751ad
1 changed files with 2 additions and 1 deletions
|
@ -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])
|
||||
|
|
Loading…
Reference in a new issue