Bug in dshow_factory_create_stream in dshow_dev.c in Windows (exception)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I tried to make video call (with auto show and transmit) and have an
exception of read adress 0x00000000 in dshow_factory_create_stream function
on
    dshow_stream_destroy((pjmedia_vid_dev_stream *)strm);
line.

I started to debug and found out that in function create_filter_graph in
line
    hr = CoCreateInstance(&CLSID_FilterGraph, NULL, CLSCTX_INPROC,
&IID_IFilterGraph, (LPVOID *)&graph->filter_graph);
we have hr = 0x800401F0 (need to run CoInitialize). So I add the followinf
after it
    if (hr == 0x800401F0)
    {
        // retry
        CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
        hr = CoCreateInstance(&CLSID_FilterGraph, NULL, CLSCTX_INPROC,
&IID_IFilterGraph, (LPVOID *)&graph->filter_graph);
    }

 And it started to work fine.
So I think that function dshow_factory_create_stream is called from other
thread, where was not CoInialized run.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20141112/8f277041/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux