[vlc-commits] macosx: reset A to B loop when switching playlist items
Felix Paul Kühne
git at videolan.org
Thu Nov 15 22:02:12 CET 2012
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Nov 15 22:02:05 2012 +0100| [add4be433f0d2d9ffb94cd800ef7ac2cdec096d8] | committer: Felix Paul Kühne
macosx: reset A to B loop when switching playlist items
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=add4be433f0d2d9ffb94cd800ef7ac2cdec096d8
---
modules/gui/macosx/CoreInteraction.h | 1 +
modules/gui/macosx/CoreInteraction.m | 12 ++++++++----
modules/gui/macosx/intf.m | 1 +
3 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/modules/gui/macosx/CoreInteraction.h b/modules/gui/macosx/CoreInteraction.h
index f992d1a..c673c2c 100644
--- a/modules/gui/macosx/CoreInteraction.h
+++ b/modules/gui/macosx/CoreInteraction.h
@@ -63,6 +63,7 @@
- (void)repeatOff;
- (void)shuffle;
- (void)setAtoB;
+- (void)resetAtoB;
- (void)updateAtoB;
- (void)volumeUp;
diff --git a/modules/gui/macosx/CoreInteraction.m b/modules/gui/macosx/CoreInteraction.m
index d0e4e2a..7c8daa2 100644
--- a/modules/gui/macosx/CoreInteraction.m
+++ b/modules/gui/macosx/CoreInteraction.m
@@ -431,10 +431,14 @@ static VLCCoreInteraction *_o_sharedInstance = nil;
timeB = var_GetTime(p_input, "time");
vlc_object_release(p_input);
}
- } else {
- timeA = 0;
- timeB = 0;
- }
+ } else
+ [self resetAtoB];
+}
+
+- (void)resetAtoB
+{
+ timeA = 0;
+ timeB = 0;
}
- (void)updateAtoB
diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index b484ca4..3b21698 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -1298,6 +1298,7 @@ static VLCMain *_o_sharedMainInstance = nil;
{
[o_mainmenu setupMenus];
[o_mainmenu updatePlaybackRate];
+ [[VLCCoreInteraction sharedInstance] resetAtoB];
}
- (void)updateMainWindow
More information about the vlc-commits
mailing list