Commit 0b56c932 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: don't try to resume playback if file was moved or deleted (close #11644)

(cherry picked from commit 1de25564be9e214b73da76e1f7ebda6047c90413)
parent 8f3cd494
......@@ -1493,9 +1493,16 @@
}
char *psz_url = decode_URI(input_item_GetURI(p_item));
if (!psz_url)
return;
NSString *url = [NSString stringWithUTF8String:psz_url ? psz_url : ""];
free(psz_url);
/* check for file existance before resuming */
if (![[NSFileManager defaultManager] fileExistsAtPath:[[NSURL URLWithString:[NSString stringWithUTF8String:input_item_GetURI(p_item)]] path]])
return;
NSNumber *lastPosition = [recentlyPlayedFiles objectForKey:url];
if (lastPosition && lastPosition.intValue > 0) {
vlc_value_t pos;
......
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