diff options
author | rogerdpack <rogerpack2005@gmail.com> | 2014-03-25 20:08:49 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-03-25 20:32:39 +0400 |
commit | 10056bc964f73426074a4ef4b61f5eda4f636aed (patch) | |
tree | 814ba1abfd88bff875249380255607b965cfa890 /libavdevice | |
parent | 0816abae1ed15fd2388626d49b4487b0a5628941 (diff) |
dshow: log error and continue if unable to set audio buffer
Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/dshow.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c index 51693be5e5..5d4e87c279 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) |