[mythtv] DVB Channel Change Patch..

Isaac Richards ijr at po.cwru.edu
Wed Jul 23 13:17:17 EDT 2003


On Wednesday 23 July 2003 11:56 am, Kenneth Aafløy wrote:
> Isaac Richards wrote:
> > On Wednesday 23 July 2003 11:25 am, Kenneth Aafløy wrote:
> > > Hi!
> > >
> > > Almost sent you the same file again....
> > >
> > > I don't see how the previous would fix anything at all, have a look at
>
> this
>
> > > instead. (Although, thanks alot for the tip on static in thread!:)
> > >             (Had used that in AvFormatDecoder::GetFrame too)
> >
> > Hmm.  I don't think that'll work -- you're switching the parameters too
>
> late,
>
> > at least, if it's direct rendering it'll already have used the wrong
> > sized buffers by then.  You need to test in get_avf_buffer() as well to
> > see if things have changed there.
> >
> > Isaac
>
> It's working, trust me!
>
> The trick is that I'm dropping one frame.
>
> The parameters are switched that late because we need to decode 1 frame in
> AvFormatDecoder::GetFrame to get parameters, the we discard that frame
> (which was rendered to old buffer), and do a reset (framesPlayed ==0),
> which will when it is reset (frameNumber == 0) switch resolution in
> NuppelVideoPlayer::OutputVideoLoop.

If the new framesize is larger than the old one, I don't see how that can 
possibly work without overwriting ends of the video buffers.

Isaac


More information about the mythtv-dev mailing list