Mailing List archive

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

[vdr] Re: vdr[3330]: ERROR: can't record MPEG1! - possible cause



Andreas Schultz wrote:
> 
> Klaus Schmidinger wrote:
> 
> > Andreas Schultz wrote:
> >
> >>Andreas Schultz wrote:
> >>
> >>
> >>>Hi all,
> >>>
> >> [...]
> 
> >>
> >>
> >>>An untested patch for the problem.is attached.
> >>>
> >>attachements don't work :-(, so here it is again:
> >>
> 
> [...]
> 
> > I like this idea a lot - but apparently this doesn't compile under Linux :-(
> 
> stupid me, i copied it from one my other projects and forgot a define. A
> fixed patch is at
> <http://www.cs.uni-magdeburg.de/~aschultz/dvd/mt-test.patch>
> 
> I have still not verified that it works, but it compiles at least.
> 
> 
> > The function pthread_mutexattr_settype() is only available if __USE_UNIX98
> > is defined in /usr/include/pthread.h, which apparently is not the case.
> > Simply declaring this function in VDR's thread.c doesn't help, either, because
> > then the linker doesn't find it.
> >
> > Do you have any futher idea how this can be used?
> 
> just add -D_GNU_SOURCE to the Makefile

I've done that now (in thread.h for the moment) and have uploaded a modified
patch to

  ftp://ftp.cadsoft.de/pub/etc/vdr/mutex.diff

in which I have generally made the mutexes recursive.
Unfortunately, after a few channel switchings, there appears to be
a deadlock of some kind and I need to "kill -9" VDR...
Did I do something wrong?

> > BTW: there are in fact cases where the mutexes are used recursively, for instance
> > when switching channels, so we do need this functionality...
> 
> Solaris doesn't have recursive Posix Mutex's, do you need Solaris
> support too? :-]

I don't think so...

Klaus
-- 
_______________________________________________________________

Klaus Schmidinger                       Phone: +49-8635-6989-10
CadSoft Computer GmbH                   Fax:   +49-8635-6989-40
Hofmark 2                               Email:   kls@cadsoft.de
D-84568 Pleiskirchen, Germany           URL:     www.cadsoft.de
_______________________________________________________________



Home | Main Index | Thread Index