Browse Source

We can safely assume that we always have a place to show the video, it might just be in the process of appearing when the media player state is changing to playback.
If we disable the video track here, the vout will be destroyed and we don't change the track index back when a videouOutputViewWrapper is added.

(closes #15000 and probably most other tickets that complain about black/no video playback)

(cherry picked from commit 02270af6d8f290504ec8e74cd285c2ac9dd342aa)
Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>

Tobias Conradi 10 years ago
parent
commit
64ceab3ebd
1 changed files with 0 additions and 6 deletions
  1. 0 6
      Sources/VLCPlaybackController.m

+ 0 - 6
Sources/VLCPlaybackController.m

@@ -541,12 +541,6 @@ NSString *const VLCPlaybackControllerPlaybackDidFail = @"VLCPlaybackControllerPl
         }
     }
 
-    /* disable video decoding if we have no place to show */
-    if (_mediaPlayer.numberOfAudioTracks > 0) {
-        if (_videoOutputViewWrapper == nil)
-            _mediaPlayer.currentVideoTrackIndex = -1;
-    }
-
     if ([self.delegate respondsToSelector:@selector(mediaPlayerStateChanged:isPlaying:currentMediaHasTrackToChooseFrom:currentMediaHasChapters:forPlaybackController:)])
         [self.delegate mediaPlayerStateChanged:currentState
                                      isPlaying:_mediaPlayer.isPlaying