Hi,

I recently upgraded to 0.17 and noticed that a bugfix that Isaac had
put in prior to 0.16 had been commented out.  This patch fixes it.
When this code is commented out then when you watch LiveTV (or watch a
recording in progress) the actual number of frames played is counted
incorrectly.  This can lead to bad WAF issues where you try to jump
forward 30s but the video actually jumps BACK in time because myth
thinks the video is in a different place than it actually is.

Perhaps we need to add a comment to the code here explaining why we
only increment the framesScanned on certain frame types.

-derek

Index: libs/libmythtv/ivtvdecoder.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/ivtvdecoder.cpp,v
retrieving revision 1.36
diff -u -r1.36 ivtvdecoder.cpp
--- libs/libmythtv/ivtvdecoder.cpp	29 Jan 2005 00:06:57 -0000	1.36
+++ libs/libmythtv/ivtvdecoder.cpp	15 Feb 2005 16:15:58 -0000
@@ -337,8 +337,8 @@
                 }
                 case PICTURE_START:
                 {
-                    //int type = (bufptr[1] >> 3) & 7;
-                    //if (type >= 1 && type <= 3)
+                    int type = (bufptr[1] >> 3) & 7;
+                    if (type >= 1 && type <= 3)
                     {
                         framesScanned++;
                         if (exitafterdecoded)
-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       [EMAIL PROTECTED]                        PGP key available
_______________________________________________
mythtv-dev mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

Reply via email to