[mythtv] DVB Channel Change Patch..
Kenneth Aafløy
ke-aa at frisurf.no
Wed Jul 23 18:56:51 EDT 2003
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.
And everything is done only when needed, and almost transparent when not
(just a couple of jnz).
see?
Kenneth
More information about the mythtv-dev
mailing list