Commit de6228c7 authored by Sandrine Avakian's avatar Sandrine Avakian

Updating msdscap-mingw.cc to use msfactory.

parent 9f01c79f
......@@ -966,8 +966,8 @@ MSFilterDesc ms_dscap_desc={
static void ms_dshow_detect(MSWebCamManager *obj);
static MSFilter * ms_dshow_create_reader(MSWebCam *obj){
MSFilter *f=ms_filter_new_from_desc(&ms_dscap_desc);
static MSFilter * ms_dshow_create_reader(MSWebCam *obj, MSFactory *factory){
MSFilter *f=ms_factory_create_filter_from_desc(factory, &ms_dscap_desc);
DSCapture *s=(DSCapture*)f->data;
s->setDeviceIndex((int)obj->data);
return f;
......
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