소스 검색

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);
 }