[FFmpeg-cvslog] dshow: log error and continue if unable to set audio buffer

rogerdpack git at videolan.org
Tue Mar 25 17:52:28 CET 2014


ffmpeg | branch: master | rogerdpack <rogerpack2005 at gmail.com> | Tue Mar 25 10:08:49 2014 -0600| [10056bc964f73426074a4ef4b61f5eda4f636aed] | committer: Michael Niedermayer

dshow: log error and continue if unable to set audio buffer

Signed-off-by: rogerdpack <rogerpack2005 at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavdevice/dshow.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index 51693be..5d4e87c 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -579,8 +579,9 @@ dshow_cycle_pins(AVFormatContext *avctx, enum dshowDeviceType devtype,
             }
         }
         if (devtype == AudioDevice && ctx->audio_buffer_size) {
-            if (dshow_set_audio_buffer_size(avctx, pin) < 0)
-                goto next;
+            if (dshow_set_audio_buffer_size(avctx, pin) < 0) {
+                av_log(avctx, AV_LOG_ERROR, "unable to set audio buffer size %d to pin, using pin anyway...", ctx->audio_buffer_size);
+            }
         }
 
         if (IPin_EnumMediaTypes(pin, &types) != S_OK)



More information about the ffmpeg-cvslog mailing list