diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c index 0191d51062..af2cf9060c 100644 --- a/libavdevice/dshow.c +++ b/libavdevice/dshow.c @@ -561,11 +561,13 @@ static int dshow_list_device_options(AVFormatContext *avctx, ICreateDevEnum *devenum, enum dshowDeviceType devtype) { + struct dshow_ctx *ctx = avctx->priv_data; IBaseFilter *device_filter = NULL; int r; if ((r = dshow_cycle_devices(avctx, devenum, devtype, &device_filter)) < 0) return r; + ctx->device_filter[devtype] = device_filter; if ((r = dshow_cycle_pins(avctx, devtype, device_filter, NULL)) < 0) return r;