[mythtv] [mythtv-commits] Ticket #4339: Channel lock error message even though channel is tuned and displaying fine.

Tom Greer trgreer at gmail.com
Thu Jan 31 20:41:03 UTC 2008


On Jan 31, 2008 10:01 AM, Steven Adeff <adeffs.mythtv at gmail.com> wrote:

> I've been getting this problem in SVN for a while now, way before
> multi-rec was merged. It only happens when initially entering live TV
> and doesn't occur when changing channels. Sometimes it will even
> appear a few seconds after the channel starts "playing".
>
>
The last change that I can see that was made that affected the startup of
LiveTV was made by danielk as part of r15437.

The changeset modified the Channel::Init() function in channel.cpp to add an
extra parameter called setchan.

I suspect that the changes to program tv_rec.cpp made at line line 3313
might be the culprit.

Here is the section of the program:

 // If this is Live TV startup, we need a channel...
3302        if (channum.isEmpty() && (request.flags & kFlagLiveTV))
3303        {
3304            if (!LiveTVStartChannel.isEmpty())
3305                channum = LiveTVStartChannel;
3306            else
3307            {
3308                input   = genOpt.defaultinput;
3309                channum = GetStartChannel(cardid, input);
3310            }
3311        }
3312        if (request.flags & kFlagLiveTV)
3313            channel->Init(input, channum, false);
3314
3315        if (channel && !channum.isEmpty() && (channum.find("NextChannel")
>= 0))
3316        {
3317            int dir     = channum.right(channum.length() - 12).toInt();
3318            uint chanid = channel->GetNextChannel(0, dir);
3319            channum     = ChannelUtil::GetChanNum(chanid);
3320        }
3321
3322        return channum;

The change to line 3313 added the extra parameter and set it to false.

I really don't understand the impact of these changes.  But I am suspicious
that this change to tv_rec.cpp might be the root cause since this line is
invoked only when starting LiveTV.

Can we have danielk take a look?

BTW, I'm a newbie on the dev mailing list, so if my etiquette is not proper
in any way, please educate me (kindly).

Thanks.

Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20080131/57d0cd64/attachment.htm 


More information about the mythtv-dev mailing list