[mythtv] Updated patch for directshow filters with MythTV (for CoreAVC)

Mark Buechler mark.buechler at gmail.com
Fri Feb 9 14:58:47 UTC 2007


Alan, have you tested 1.1 with a single core? Mine dumps Myth as soon as the
codec starts it's main function:

Trying DirectShow
Destroying filter!
FindModule: Module CoreAVCDecoder.ax request
Trying native dll 'CoreAVCDecoder.ax'
Failed to load module 'CoreAVCDecoder.ax'; error=0x00000002,
Trying native dll '/usr/lib/win32/CoreAVCDecoder.ax'
Dump of segment table
   Name    VSz  Vaddr     SzRaw   Fileadr  *Reloc *Lineum #Reloc #Linum Char
   .text: b7000 00001000 00029800 00000400 32434550 00004f17 0000 0000
e2000060
   .rsrc: 2000 000b8000 00001a00 00029c00 00000000 00000000 0000 0000
e0000020
  .reloc: 0200 000ba000 00000200 0002b600 00000000 00000000 0000 0000
c0000040
Load addr is 10000000 (base 10000000), range ba200
Loading /usr/lib/win32/CoreAVCDecoder.ax at 10000000, range ba200
...
Loaded module '/usr/lib/win32/CoreAVCDecoder.ax' at 0x10000000,
(/usr/lib/win32/CoreAVCDecoder.ax,(nil)) - START
(/usr/lib/win32/CoreAVCDecoder.ax,PROCESS_ATTACH,(nil)) - CALL
(DllMain)
CallTo32(entryproc=0x100b8875,module=10000000,type=1,res=(nil))
Entering DllMain(DLL_PROCESS_ATTACH) for /usr/lib/win32/CoreAVCDecoder.ax

- Mark.

On 2/8/07, Alan Nisota <alannisota at gmail.com> wrote:
>
> Andrew Lyon wrote:
> > Alan,
> >
> > Not sure what was happening last night but I've got it working now,
> > although I cannot get libdshowloader to compile as part of myth, I
> > have to cd dshowloader , make.
> >
> > If course the colours are still wacked, were the samples of any use to
> > you? do you need any more?
> So the 1.1 patch has 2 issues that are trivial to fix:
> 1) Hanging when trying to exit:
> Index: libs/libdshowloader/win32.c
> ===================================================================
> --- libs/libdshowloader/win32.c.orig    2007-02-08 19:46:14.000000000-0800
> +++ libs/libdshowloader/win32.c 2007-02-08 19:35:10.000000000 -0800
> @@ -1961,7 +1961,7 @@
>
>      pthread_mutex_lock(ml->pm);
>      if (prev_count != 0) *prev_count = ml->semaphore;
> -    if (ml->semaphore == 0) pthread_cond_signal(ml->pc);
> +    if (ml->semaphore == 0) pthread_cond_broadcast(ml->pc);
>      ml->semaphore += increment;
>      pthread_mutex_unlock(ml->pm);
>      dbgprintf("ReleaseSemaphore(semaphore 0x%x, increment %d,
> prev_count 0x%x) => 1\n",
>
> 2) Screwed up colors:
> Index: libs/libdshowloader/dshow/DS_VideoDecoder.c
> ===================================================================
> --- libs/libdshowloader/dshow/DS_VideoDecoder.c.orig    2007-02-08
> 19:46:14.000000000 -0800
> +++ libs/libdshowloader/dshow/DS_VideoDecoder.c 2007-02-08
> 19:40:50.000000000 -0800
> @@ -556,7 +556,6 @@
>      int stoped = 0;
>
>      Debug printf("DS_VideoDecoder_SetDestFmt (%p, %d,
> %d)\n",this,bits,(int)csp);
> -return 0;
>
>         /* if (!CImage::Supported(csp, bits))
>         return -1;
>
> As for the make problem, I'm not really sure.  I'll need to dig into it
> some more.
> _______________________________________________
> 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/20070209/680467f6/attachment-0001.htm 


More information about the mythtv-dev mailing list