avdevice/pulse_audio_common: add av_warn_unused_result

This does not trigger any warnings, but adds robustness.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
This commit is contained in:
Ganesh Ajjanagadde 2015-10-15 21:52:01 -04:00
parent e7d9061d4f
commit a7c5005d7b
1 changed files with 2 additions and 0 deletions

View File

@ -28,8 +28,10 @@
pa_sample_format_t ff_codec_id_to_pulse_format(enum AVCodecID codec_id); pa_sample_format_t ff_codec_id_to_pulse_format(enum AVCodecID codec_id);
av_warn_unused_result
int ff_pulse_audio_get_devices(AVDeviceInfoList *devices, const char *server, int output); int ff_pulse_audio_get_devices(AVDeviceInfoList *devices, const char *server, int output);
av_warn_unused_result
int ff_pulse_audio_connect_context(pa_mainloop **pa_ml, pa_context **pa_ctx, int ff_pulse_audio_connect_context(pa_mainloop **pa_ml, pa_context **pa_ctx,
const char *server, const char *description); const char *server, const char *description);