Commits

Anonymous committed 468d7fb

Further progress, made it so queue_picture displays a picture when there
is one meant to be shown. For some reason, this shows all frames, just
really fast.

-Tyler

  • Participants
  • Parent commits 85f336e
  • Branches tylerthemovie

Comments (0)

Files changed (2)

File src/_gmovie.c

 
     SDL_LockMutex(movie->dest_mutex);
 	vp = &movie->pictq[movie->pictq_windex];
-	int c=0;
-	while(vp->ready && c<VIDEO_PICTURE_QUEUE_SIZE)
+	int c=1;
+	/*while(vp->ready && c<VIDEO_PICTURE_QUEUE_SIZE)
 	{
 		c++;
 		vp = &movie->pictq[(movie->pictq_windex+c)%VIDEO_PICTURE_QUEUE_SIZE];
 		
+	}*/
+	if(movie->timing)
+	{
+		video_display(movie);
 	}
 	if(!vp->dest_overlay)
 	{
         if (got_picture) {
         	update_video_clock(movie, frame, pts);
         	if (queue_picture(movie, frame) < 0)
+        	{
         		goto the_end;
+        	}
         }
         av_free_packet(pkt);
     }

File src/_gmovie.h

 
  
 
-#define VIDEO_PICTURE_QUEUE_SIZE 16
+#define VIDEO_PICTURE_QUEUE_SIZE 32
 #define SUBPICTURE_QUEUE_SIZE 4
 
 //included from ffmpeg header files, as the header file is not publically available.