diff options
author | Michal Ratajsky <[email protected]> | 2016-01-05 11:14:12 +0100 |
---|---|---|
committer | Michal Ratajsky <[email protected]> | 2016-01-05 11:18:38 +0100 |
commit | 851c4a0b3615234ff3930389dd666205c2863c64 (patch) | |
tree | c4836b7236b7ad5f3aaf09a5be5db37b4ab4cc2f /backends/pulse/pulse-stream.c | |
parent | c03e76c83ed49335390cdb9e3a8e63df4d73e0c5 (diff) | |
download | libmatemixer-851c4a0b3615234ff3930389dd666205c2863c64.tar.bz2 libmatemixer-851c4a0b3615234ff3930389dd666205c2863c64.tar.xz |
pulse: Turn a macro into a function and provide error checking
Diffstat (limited to 'backends/pulse/pulse-stream.c')
-rw-r--r-- | backends/pulse/pulse-stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/pulse/pulse-stream.c b/backends/pulse/pulse-stream.c index 9856c98..50b821e 100644 --- a/backends/pulse/pulse-stream.c +++ b/backends/pulse/pulse-stream.c @@ -164,7 +164,7 @@ pulse_stream_dispose (GObject *object) guint32 pulse_stream_get_index (PulseStream *stream) { - g_return_val_if_fail (PULSE_IS_STREAM (stream), 0); + g_return_val_if_fail (PULSE_IS_STREAM (stream), PA_INVALID_INDEX); return stream->priv->index; } |