Commits

Anonymous committed 14984a3

Made change to surface display code(no more skipped frames)

  • Participants
  • Parent commits 77cf3e2
  • Branches tylerthemovie

Comments (0)

Files changed (2)

File movie_test.py

 
 print "Please give an (absolute)filename of a movie file you'd like to play: ",
 #filename = raw_input()
-filename="/home/tyler/War3.avi"
+filename="/home/tyler/tos.avi"
 #initialization. It could also have a surface as a second argument, and every 
 # frame will be blitted to that surface. It is the programmer's responsibility
 # to be on time for rendering that surface.
 ##print "X Left:",m.xleft
 time.sleep(10)
 print "Testing seek..."
-m.easy_seek(10, 0, 0, 0)
+m.easy_seek(10, 5, 0, 0)
 time.sleep(5)
-m.easy_seek(10, 0, 0, 0)
+m.easy_seek(10, 10, 0, 0)
 time.sleep(1)
 m.pause()
 time.sleep(5)
 
 m=movie.Movie(filename, screen)
 counter = 0
-actions = {1: lambda x: x.paused, 6: lambda x:x.pause(), 11: lambda x:x.pause(), 15: lambda x: x.resize(int(x.width*0.9), int(x.height*0.9)), 2000:lambda x: x.stop(), 3000: lambda x: x.play(-1)}
+actions = {1: lambda x: x.paused, 6: lambda x:x.pause(), 11: lambda x:x.pause(), 2000:lambda x: x.stop(), 3000: lambda x: x.play(-1)}
 m.play(0)
 prev_time = time.time()
 #m.resize(m.width*2, m.height*2)

File src/_gmovie.c

             SDL_UnlockYUVOverlay(vp->dest_overlay);
         }
     }
-    else if(vp->dest_surface && vp->overlay<=0 && !movie->skip_frame)
+    else if(vp->dest_surface && vp->overlay<=0)
     {
         SDL_BlitSurface(vp->dest_surface, &vp->dest_rect, movie->canon_surf, &vp->dest_rect);
     }