[vlc-commits] macosx: don't try to continue playback if current position is 0

Felix Paul Kühne git at videolan.org
Sun May 18 19:02:42 CEST 2014


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun May 18 19:02:38 2014 +0200| [98dd4679007dfe8ed9a65d5a50c98eb5e0a385fe] | committer: Felix Paul Kühne

macosx: don't try to continue playback if current position is 0

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=98dd4679007dfe8ed9a65d5a50c98eb5e0a385fe
---

 modules/gui/macosx/playlist.m |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index 4d8cc9f..9588a4b 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -1491,7 +1491,7 @@
             long long int dur = input_item_GetDuration(p_item) / 1000000;
             int current_pos_in_sec = (f_current_pos * dur) / 100;
 
-            if (current_pos_in_sec >= lastPosition.intValue)
+            if (current_pos_in_sec == 0 || current_pos_in_sec >= lastPosition.intValue)
                 return;
 
             int settingValue = config_GetInt(VLCIntf, "macosx-continue-playback");



More information about the vlc-commits mailing list