[vlc-commits] [Git][videolan/vlc][master] winstore: remove redundant test
Hugo Beauzée-Luyssen (@chouquette)
gitlab at videolan.org
Tue Sep 28 11:27:37 UTC 2021
Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC
Commits:
bd815b23 by Rémi Denis-Courmont at 2021-09-28T09:17:47+00:00
winstore: remove redundant test
If the QueryInterface method succeeds, then the pointer cannot be NULL.
- - - - -
1 changed file:
- modules/audio_output/winstore.c
Changes:
=====================================
modules/audio_output/winstore.c
=====================================
@@ -172,8 +172,7 @@ static void WaitForAudioClient(audio_output_t *aout)
}
IAudioClient2 *audioClient2;
- if (SUCCEEDED(IAudioClient_QueryInterface(sys->client, &IID_IAudioClient2, (void**)&audioClient2))
- && audioClient2)
+ if (SUCCEEDED(IAudioClient_QueryInterface(sys->client, &IID_IAudioClient2, (void**)&audioClient2)))
{
// "BackgroundCapableMedia" does not work in UWP
AudioClientProperties props = (AudioClientProperties) {
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/bd815b233e9ebc890d7c77023046b7a0ae205b19
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/bd815b233e9ebc890d7c77023046b7a0ae205b19
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list