mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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>
This commit is contained in:
parent
0816abae1e
commit
10056bc964
@ -579,8 +579,9 @@ dshow_cycle_pins(AVFormatContext *avctx, enum dshowDeviceType devtype,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (devtype == AudioDevice && ctx->audio_buffer_size) {
|
if (devtype == AudioDevice && ctx->audio_buffer_size) {
|
||||||
if (dshow_set_audio_buffer_size(avctx, pin) < 0)
|
if (dshow_set_audio_buffer_size(avctx, pin) < 0) {
|
||||||
goto next;
|
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)
|
if (IPin_EnumMediaTypes(pin, &types) != S_OK)
|
||||||
|
Loading…
Reference in New Issue
Block a user