瀏覽代碼

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 年之前
父節點
當前提交
08f100ac23
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);
 }