[vlc-commits] macosx: add missing error checking
Felix Paul Kühne
git at videolan.org
Sun Jun 10 10:35:40 CEST 2018
vlc/vlc-3.0 | branch: master | Felix Paul Kühne <felix at feepk.net> | Sat Jun 9 16:15:49 2018 +0200| [fc90d722ae4f794a3e1afeaf54c56b46aafa6171] | committer: Felix Paul Kühne
macosx: add missing error checking
(cherry picked from commit 9ee2f4b2387965383d92cb1907fcc47a1c7b9331)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=fc90d722ae4f794a3e1afeaf54c56b46aafa6171
---
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