Commit d2d8b9b9 authored by Diederick Niehorster's avatar Diederick Niehorster Committed by James Almer

avdevice/dshow: reuse unused variables.

Fix for f125c504, requested_sample_rate
and such should be used.
Signed-off-by: 's avatarDiederick Niehorster <dcnieho@gmail.com>
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent e71d5156
......@@ -1003,9 +1003,9 @@ dshow_cycle_formats(AVFormatContext *avctx, enum dshowDeviceType devtype,
continue;
}
if (
(ctx->sample_rate && ctx->sample_rate != fx->nSamplesPerSec) ||
(ctx->sample_size && ctx->sample_size != fx->wBitsPerSample) ||
(ctx->channels && ctx->channels != fx->nChannels )
(requested_sample_rate && requested_sample_rate != fx->nSamplesPerSec) ||
(requested_sample_size && requested_sample_size != fx->wBitsPerSample) ||
(requested_channels && requested_channels != fx->nChannels )
) {
goto next;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment