diff options
author | Michal Ratajsky <[email protected]> | 2016-01-04 20:31:14 +0100 |
---|---|---|
committer | Michal Ratajsky <[email protected]> | 2016-01-04 20:31:14 +0100 |
commit | 9772797c31ebed2417b42a9389caae1b16847e86 (patch) | |
tree | 0257271d6f8387ce89984bf8341b11186381c8d5 /backends/pulse/pulse-sink-input.c | |
parent | d32ca3f420d036cd750fc1aad7f95da40559cc5d (diff) | |
download | libmatemixer-9772797c31ebed2417b42a9389caae1b16847e86.tar.bz2 libmatemixer-9772797c31ebed2417b42a9389caae1b16847e86.tar.xz |
Improve error checking in many places
Diffstat (limited to 'backends/pulse/pulse-sink-input.c')
-rw-r--r-- | backends/pulse/pulse-sink-input.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/backends/pulse/pulse-sink-input.c b/backends/pulse/pulse-sink-input.c index eb812c6..c20a820 100644 --- a/backends/pulse/pulse-sink-input.c +++ b/backends/pulse/pulse-sink-input.c @@ -146,8 +146,12 @@ pulse_sink_input_new (PulseSink *sink, const pa_sink_input_info *info) NULL); g_free (name); - if (app_info != NULL) - pulse_stream_control_set_app_info (PULSE_STREAM_CONTROL (input), app_info); + if (app_info != NULL) { + /* Takes ownership of app_info */ + pulse_stream_control_set_app_info (PULSE_STREAM_CONTROL (input), + app_info, + TRUE); + } pulse_sink_input_update (input, info); return input; |