Browse Source

videoSize returns CGSizeZero instead throwing exception when there is no video track

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
James Dumay 11 years ago
parent
commit
08f100ac23
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/VLCMediaPlayer.m

+ 1 - 1
Sources/VLCMediaPlayer.m

@@ -577,7 +577,7 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s
     unsigned height = 0, width = 0;
     int failure = libvlc_video_get_size(_playerInstance, 0, &width, &height);
     if (failure)
-        [[NSException exceptionWithName:@"Can't get video size" reason:@"No video output" userInfo:nil] raise];
+        return CGSizeZero;
     return CGSizeMake(width, height);
 }