]> git.sesse.net Git - vlc/commitdiff
macosx: Do not resume playback if start, stop or run-time is set
authorDavid Fuhrmann <dfuhrmann@videolan.org>
Sat, 16 Aug 2014 11:20:55 +0000 (13:20 +0200)
committerDavid Fuhrmann <dfuhrmann@videolan.org>
Sat, 16 Aug 2014 11:21:45 +0000 (13:21 +0200)
modules/gui/macosx/playlist.m

index b41ef77b12c5c605c7940c3e6913b74062990c11..09ddb9d5de6b8940b16c76291d6e63638b806073 100644 (file)
         if (!p_item)
             return;
 
-        /* allow the user to over-write the start-time */
-        if (p_item->i_options > 0) {
-            for (int x = 0; x < p_item->i_options; x++) {
-                if (strstr(p_item->ppsz_options[x],"start-time"))
-                    return;
-            }
+        /* allow the user to over-write the start/stop/run-time */
+        if (var_GetFloat(p_input_thread, "run-time") > 0 ||
+            var_GetFloat(p_input_thread, "start-time") > 0 ||
+            var_GetFloat(p_input_thread, "stop-time") > 0) {
+            return;
         }
 
         char *psz_url = decode_URI(input_item_GetURI(p_item));