Commit add4be43 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: reset A to B loop when switching playlist items

parent f790f399
...@@ -63,6 +63,7 @@ ...@@ -63,6 +63,7 @@
- (void)repeatOff; - (void)repeatOff;
- (void)shuffle; - (void)shuffle;
- (void)setAtoB; - (void)setAtoB;
- (void)resetAtoB;
- (void)updateAtoB; - (void)updateAtoB;
- (void)volumeUp; - (void)volumeUp;
......
...@@ -431,10 +431,14 @@ static VLCCoreInteraction *_o_sharedInstance = nil; ...@@ -431,10 +431,14 @@ static VLCCoreInteraction *_o_sharedInstance = nil;
timeB = var_GetTime(p_input, "time"); timeB = var_GetTime(p_input, "time");
vlc_object_release(p_input); vlc_object_release(p_input);
} }
} else { } else
timeA = 0; [self resetAtoB];
timeB = 0; }
}
- (void)resetAtoB
{
timeA = 0;
timeB = 0;
} }
- (void)updateAtoB - (void)updateAtoB
......
...@@ -1298,6 +1298,7 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -1298,6 +1298,7 @@ static VLCMain *_o_sharedMainInstance = nil;
{ {
[o_mainmenu setupMenus]; [o_mainmenu setupMenus];
[o_mainmenu updatePlaybackRate]; [o_mainmenu updatePlaybackRate];
[[VLCCoreInteraction sharedInstance] resetAtoB];
} }
- (void)updateMainWindow - (void)updateMainWindow
......
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