Commit 1d84f539 authored by Thomas Guillem's avatar Thomas Guillem

VLCPlaybackController: use new set_deinterlace API

Fixes automatic mode that was always forcing deinterlacing.

Fixes #136
parent 892dc980
......@@ -205,10 +205,8 @@ typedef NS_ENUM(NSUInteger, VLCAspectRatio) {
[_mediaPlayer setDelegate:self];
if ([[defaults objectForKey:kVLCSettingPlaybackSpeedDefaultValue] floatValue] != 0)
[_mediaPlayer setRate: [[defaults objectForKey:kVLCSettingPlaybackSpeedDefaultValue] floatValue]];
if ([[defaults objectForKey:kVLCSettingDeinterlace] intValue] != 0)
[_mediaPlayer setDeinterlaceFilter:@"blend"];
[_mediaPlayer setDeinterlaceFilter:nil];
int deinterlace = [[defaults objectForKey:kVLCSettingDeinterlace] intValue];
[_mediaPlayer setDeinterlace:deinterlace withFilter:@"blend"];
VLCMedia *media = [_mediaList mediaAtIndex:_itemInMediaListToBePlayedFirst];
[media parseWithOptions:VLCMediaParseLocal];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment