소스 검색

* fix crash in libvlc packages by patch from Michl, resolves #31541

git-svn-id: trunk@38308 -
florian 7 년 전
부모
커밋
f969e43ff0
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      packages/libvlc/src/vlc.pp

+ 2 - 1
packages/libvlc/src/vlc.pp

@@ -687,7 +687,8 @@ end;
 
 procedure TCustomVLCMediaPlayer.SetAudioMuted(AValue: Boolean);
 begin
-  libvlc_audio_set_mute(instance, ord(AValue));
+  if Assigned(FInstance) then
+    libvlc_audio_set_mute(instance, ord(AValue));
 end;
 
 procedure TCustomVLCMediaPlayer.SetFitWindow(AValue: Boolean);