ofTheo / videoInput

A video capture library for windows.
http://muonics.net/school/spring05/videoInput/
357 stars 175 forks source link

videoDevice Destructor freezes randomly when USB Capture Card is used #49

Open jayantySrikrishna opened 4 years ago

jayantySrikrishna commented 4 years ago

The video Capture freezes while trying to Stop pControl.

    //Check to see if the graph is running, if so stop it.
    if ((pControl))
    {
        HR = pControl->Pause();
        if (FAILED(HR)) if (verbose)printf("ERROR - Could not pause pControl\n");

        HR = pControl->Stop();
        if (FAILED(HR)) if (verbose)printf("ERROR - Could not stop pControl\n");
    }

    //Disconnect filters from capture device
    if ((pVideoInputFilter))NukeDownstream(pVideoInputFilter);