[mythtv] [patch] Fix for sluggish pause
David Engel
gigem at comcast.net
Mon Dec 6 16:43:10 UTC 2004
On Sun, Dec 05, 2004 at 11:11:07PM -0500, Isaac Richards wrote:
> Cool. Happen to know if thumbnail generation's fixed, btw?
The attached patch might help, but I doubt it. I can't test this very
well remotely.
The problem appears to be in the position map handling, which I didn't
think I'd touched. NVP::GetScreenGrab ultimately calls
dec::DoFastForward. dec::DoFastForward doesn't think there is a
position map and starts scanning frames until the postion map covers
the desired frame. That never happens and the loop eventually breaks
out when it hits eof.
David
--
David Engel
gigem at comcast.net
-------------- next part --------------
Index: libs/libmythtv/avformatdecoder.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/avformatdecoder.cpp,v
retrieving revision 1.119
diff -u -r1.119 avformatdecoder.cpp
--- libs/libmythtv/avformatdecoder.cpp 1 Dec 2004 02:39:10 -0000 1.119
+++ libs/libmythtv/avformatdecoder.cpp 6 Dec 2004 16:29:57 -0000
@@ -1295,6 +1295,7 @@
{
if (onlyvideo < 0)
{
+ framesPlayed++;
ptr += pkt->size;
len -= pkt->size;
continue;
Index: libs/libmythtv/nuppeldecoder.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/nuppeldecoder.cpp,v
retrieving revision 1.55
diff -u -r1.55 nuppeldecoder.cpp
--- libs/libmythtv/nuppeldecoder.cpp 3 Dec 2004 03:35:40 -0000 1.55
+++ libs/libmythtv/nuppeldecoder.cpp 6 Dec 2004 16:29:57 -0000
@@ -1005,7 +1005,7 @@
{
if (avignore == -1)
{
- //framesPlayed++;
+ framesPlayed++;
gotvideo = 1;
continue;
}
More information about the mythtv-dev
mailing list