[mythtv] Trick play patch
David Engel
dlengel at attbi.com
Wed Aug 20 23:13:51 EDT 2003
On Wed, Aug 20, 2003 at 10:24:17AM -0400, Isaac Richards wrote:
> Yeah, couldn't think of an easy way, either -- and the patch as is breaks
> seeking to the nearest keyframe in edit mode.
>
> > Of course, we could just punt and tell users who want exact single
> > frame rewinds that they need to turn on exact seeks.
>
> That's probably the best way to do it..
Below is an untested (but should work) patch for the keyframe issue.
> > It's more complicated than that. The fade movement needs to be
> > adjusted somehow too.
>
> Ah, yeah.. Hmm..
I've got some ideas, but it's probably not a high priority, so no
promises when/if I'll get to it.
David
--
David Engel
dlengel at attbi.com
Index: libs/libmythtv/NuppelVideoPlayer.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/NuppelVideoPlayer.cpp,v
retrieving revision 1.256
diff -u -r1.256 NuppelVideoPlayer.cpp
--- libs/libmythtv/NuppelVideoPlayer.cpp 20 Aug 2003 14:29:44 -0000 1.256
+++ libs/libmythtv/NuppelVideoPlayer.cpp 21 Aug 2003 03:08:30 -0000
@@ -1742,7 +1742,10 @@
if (desiredFrame < video_frame_rate)
limitKeyRepeat = true;
+ if (paused && !editmode)
+ decoder->setExactSeeks(true);
decoder->DoRewind(desiredFrame);
+ decoder->setExactSeeks(exactseeks);
ClearAfterSeek();
return true;
@@ -1789,8 +1792,11 @@
long long number = fftime - 1;
long long desiredFrame = framesPlayed + number;
+ if (paused && !editmode)
+ decoder->setExactSeeks(true);
decoder->DoFastForward(desiredFrame);
+ decoder->setExactSeeks(exactseeks);
ClearAfterSeek();
return true;
More information about the mythtv-dev
mailing list