[mythtv-users] Re: PVR350 Timing issues? (WatchingLiveTV->None->RecordingOnly and vice-versa)

Chris Delis chris at delis.net
Mon Oct 20 12:18:28 EDT 2003


> 
> Hello,
> 
> Has anyone else noticed a problem with the PVR350 decoder when switching
> between modes?
> 
> When I am watching live tv and a scheduled recording is about to start,
> mythfrontend seems to lockup.  Also, there are times when I simply leave
> live tv to get to the main menu and mythbackend dies.
> 
> Note that all of this happens only when using the decoder (/dev/video16)
> with the ivtv-fb framebuffer device.  All seems to work ok when I use
> the Xv display (my monitor).
> 
> The reason I suspect a timing issue of sorts, is twofold: 1) When I
> pause live tv or prerecorded show, the OSD reflects the wrong time
> (when I first start up myth and go live tv and hit pause right away,
> I notice the OSD says its 4 minutes behind).  2) In tv_rec.cpp, I was
> able to get things working by adding time to the usleep() system calls



Sorry, but I have mispoken a bit here.  I didn't add time to the usleep(),
but instead I added time for the state change polling in tv_rec.cpp 
(where the timeout variable is being set below):

    if (internalState == kState_WatchingLiveTV && !cancelNextRecording)
    {
        QDateTime timeout;

        QString message = QString("QUIT_LIVETV %1").arg(m_capturecardnum);

        MythEvent me(message);
        gContext->dispatch(me);

        //timeout = QDateTime::currentDateTime().addSecs(3);
        timeout = QDateTime::currentDateTime().addSecs(10);

        while (internalState != kState_None &&
               QDateTime::currentDateTime().secsTo(timeout) > 0)
            usleep(100);

        if (internalState != kState_None)
        {
            gContext->dispatch(me);

            //timeout = QDateTime::currentDateTime().addSecs(3);
            timeout = QDateTime::currentDateTime().addSecs(10);

            while (internalState != kState_None &&
                   QDateTime::currentDateTime().secsTo(timeout) > 0)
                usleep(100);
        }

	...



> in TVRec::StartRecording (I haven't yet figured out how to fix the crash
> when leaving live tv).
> 
> --Chris
> 
> 
> 
> 
> 



More information about the mythtv-users mailing list