Commit 6cc45270 authored by Carola Nitz's avatar Carola Nitz

VLCMediaDataSource: Remove knowledge of MediaPlayer

parent 7d8948c8
......@@ -237,12 +237,10 @@
/* stop playback if needed */
VLCPlaybackController *vpc = [VLCPlaybackController sharedInstance];
if (vpc.isPlaying) {
MLFile *currentlyPlayingFile = [[MLFile fileForURL:vpc.mediaPlayer.media.url] firstObject];
if (currentlyPlayingFile) {
if (currentlyPlayingFile == mediaObject)
[vpc stopPlayback];
}
VLCMedia *media = [vpc currentlyPlayingMedia];
MLFile *currentlyPlayingFile = [MLFile fileForURL:media.url].firstObject;
if (currentlyPlayingFile && currentlyPlayingFile == mediaObject) {
[vpc stopPlayback];
}
NSFileManager *fileManager = [NSFileManager defaultManager];
......
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