mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
Restricted activeVideoMaxFrameDuration to fix frame rate
This commit is contained in:
parent
2ba6bb9b93
commit
f62dda74cc
1 changed files with 2 additions and 1 deletions
|
@ -467,7 +467,8 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
|
|||
[device setValue:min_frame_duration forKey:@"activeVideoMinFrameDuration"];
|
||||
@try {
|
||||
/* Only available on OSX >= 10.8 and iOS >= 7.0 */
|
||||
[device setValue:max_frame_duration forKey:@"activeVideoMaxFrameDuration"];
|
||||
// Restrict activeVideoMaxFrameDuration to the minimum value so we get a better capture frame rate
|
||||
[device setValue:min_frame_duration forKey:@"activeVideoMaxFrameDuration"];
|
||||
} @catch (NSException *exception) {
|
||||
if (![[exception name] isEqualToString:NSUndefinedKeyException]) {
|
||||
GST_WARNING ("An unexcepted error occured: %s",
|
||||
|
|
Loading…
Reference in a new issue