wasapi: use FAILED to detect errors
authorChristoph Reiter <reiter.christoph@gmail.com>
Tue, 22 May 2018 20:58:22 +0000 (22:58 +0200)
committerNirbheek Chauhan <nirbheek@centricular.com>
Wed, 23 May 2018 07:54:00 +0000 (13:24 +0530)
commit2d98a5c1d7854d5d15678945f84b2960a52f75f8
tree0e66d3d9319b54729f0fcff44975e73af69e976c
parentadb1df3bc102657b60a8400a9804b8836494a752
wasapi: use FAILED to detect errors

S_FALSE is a valid return value which does not indicate an error.
For example IAudioClient_Stop() returns S_FALSE when it is already stopped.
Use the FAILED macro instead which just checks if an error occured or not.

This fixes spurious warnings when using the wasapisink element.

https://bugzilla.gnome.org/show_bug.cgi?id=796280
sys/wasapi/gstwasapiutil.h