Skip to content
Snippets Groups Projects
Commit 5e80a6cd authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde
Browse files

avdevice/alsa: add av_warn_unused_result


This does not trigger any warnings, but adds robustness.

Reviewed-by: default avatarNicolas George <george@nsup.org>
Signed-off-by: default avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
parent 0418541d
No related branches found
No related tags found
No related merge requests found
...@@ -74,6 +74,7 @@ typedef struct AlsaData { ...@@ -74,6 +74,7 @@ typedef struct AlsaData {
* *
* @return 0 if OK, AVERROR_xxx on error * @return 0 if OK, AVERROR_xxx on error
*/ */
av_warn_unused_result
int ff_alsa_open(AVFormatContext *s, snd_pcm_stream_t mode, int ff_alsa_open(AVFormatContext *s, snd_pcm_stream_t mode,
unsigned int *sample_rate, unsigned int *sample_rate,
int channels, enum AVCodecID *codec_id); int channels, enum AVCodecID *codec_id);
...@@ -95,10 +96,13 @@ int ff_alsa_close(AVFormatContext *s1); ...@@ -95,10 +96,13 @@ int ff_alsa_close(AVFormatContext *s1);
* *
* @return 0 if OK, AVERROR_xxx on error * @return 0 if OK, AVERROR_xxx on error
*/ */
av_warn_unused_result
int ff_alsa_xrun_recover(AVFormatContext *s1, int err); int ff_alsa_xrun_recover(AVFormatContext *s1, int err);
av_warn_unused_result
int ff_alsa_extend_reorder_buf(AlsaData *s, int size); int ff_alsa_extend_reorder_buf(AlsaData *s, int size);
av_warn_unused_result
int ff_alsa_get_device_list(AVDeviceInfoList *device_list, snd_pcm_stream_t stream_type); int ff_alsa_get_device_list(AVDeviceInfoList *device_list, snd_pcm_stream_t stream_type);
#endif /* AVDEVICE_ALSA_H */ #endif /* AVDEVICE_ALSA_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment