[FFmpeg-cvslog] avdevice/alsa: add av_warn_unused_result

Ganesh Ajjanagadde git at videolan.org
Fri Oct 16 13:56:16 CEST 2015


ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Thu Oct 15 21:57:38 2015 -0400| [5e80a6cd315debe462feaf30b635c07cb0f44abb] | committer: Ganesh Ajjanagadde

avdevice/alsa: add av_warn_unused_result

This does not trigger any warnings, but adds robustness.

Reviewed-by: Nicolas George <george at nsup.org>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5e80a6cd315debe462feaf30b635c07cb0f44abb
---

 libavdevice/alsa.h |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavdevice/alsa.h b/libavdevice/alsa.h
index f8b7449..cd41d96 100644
--- a/libavdevice/alsa.h
+++ b/libavdevice/alsa.h
@@ -74,6 +74,7 @@ typedef struct AlsaData {
  *
  * @return 0 if OK, AVERROR_xxx on error
  */
+av_warn_unused_result
 int ff_alsa_open(AVFormatContext *s, snd_pcm_stream_t mode,
                  unsigned int *sample_rate,
                  int channels, enum AVCodecID *codec_id);
@@ -95,10 +96,13 @@ int ff_alsa_close(AVFormatContext *s1);
  *
  * @return 0 if OK, AVERROR_xxx on error
  */
+av_warn_unused_result
 int ff_alsa_xrun_recover(AVFormatContext *s1, int err);
 
+av_warn_unused_result
 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);
 
 #endif /* AVDEVICE_ALSA_H */



More information about the ffmpeg-cvslog mailing list