[vlc-commits] macosx: add missing error checking
Felix Paul Kühne
git at videolan.org
Sat Jun 9 17:44:12 CEST 2018
vlc | branch: master | Felix Paul Kühne <felix at feepk.net> | Sat Jun 9 16:15:49 2018 +0200| [9ee2f4b2387965383d92cb1907fcc47a1c7b9331] | committer: Felix Paul Kühne
macosx: add missing error checking
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9ee2f4b2387965383d92cb1907fcc47a1c7b9331
---
modules/gui/macosx/NSSound+VLCAdditions.m | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/gui/macosx/NSSound+VLCAdditions.m b/modules/gui/macosx/NSSound+VLCAdditions.m
index bd81bb7349..c3343c9c37 100644
--- a/modules/gui/macosx/NSSound+VLCAdditions.m
+++ b/modules/gui/macosx/NSSound+VLCAdditions.m
@@ -80,6 +80,10 @@
return NO;
}
err = AudioObjectSetPropertyData(i_device, &propertyAddress, 0, NULL, i_size, &f_volume);
+ if (err != noErr ) {
+ msg_Warn( getIntf(), "failed to set the main device volume" );
+ return NO;
+ }
return YES;
}
More information about the vlc-commits
mailing list