[mythtv] Updated patch for directshow filters with MythTV (for CoreAVC)
Mark Buechler
mark.buechler at gmail.com
Tue Feb 13 17:01:17 UTC 2007
Alan, will 1.2 now work with a single core again?
- Mark.
On 2/13/07, Alan Nisota <alannisota at gmail.com> wrote:
>
> Andrew Lyon wrote:
> > Confirmed, 1.2 fixes the compile issue. I will test it later today as
> > I am at work now.
> >
> Here is a patch on top of 1.2 that will allow you to watch more than 2
> shows before it crashes. Mplayer is not designed to initialize a DLL
> more than once, which is causing this issue.
>
> Index: libs/libdshowloader/win32.c
> ===================================================================
> --- libs/libdshowloader/win32.c.orig 2007-02-13 07:49:15.000000000-0800
> +++ libs/libdshowloader/win32.c 2007-02-13 07:47:29.000000000 -0800
> @@ -5577,6 +5577,16 @@
> }
>
> no_dll:
> + {
> + /* Search to see if this function has alreayd been defined */
> + char expname[80];
> + sprintf(expname, "%s:%d", library, ordinal);
> + j = strlen(expname);
> + for(i=0; i < pos; i++) {
> + if(strncmp(expname,export_names[i], j) == 0)
> + return (void*)extcode+i*0x30;
> + }
> + }
> if(pos>150)return 0;
> sprintf(export_names[pos], "%s:%d", library, ordinal);
> return add_stub();
> @@ -5645,6 +5655,14 @@
> }
>
> no_dll_byname:
> + {
> + /* Search to see if this function has alreayd been defined */
> + j = strlen(name);
> + for(i=0; i < pos; i++) {
> + if(strncmp(name,export_names[i], j) == 0)
> + return (void*)extcode+i*0x30;
> + }
> + }
> if(pos>150)return 0;// to many symbols
> strcpy(export_names[pos], name);
> return add_stub();
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20070213/6e070d66/attachment.htm
More information about the mythtv-dev
mailing list