mirror of
https://github.com/mpv-player/mpv
synced 2025-04-18 13:16:43 +00:00
Fix loop playback. Main loop was quited on end of video.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5699 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
05db632e25
commit
123256d736
@ -1492,6 +1492,7 @@ if(!sh_video) {
|
|||||||
|
|
||||||
//-------------------- Decode a frame: -----------------------
|
//-------------------- Decode a frame: -----------------------
|
||||||
vdecode_time=video_time_usage;
|
vdecode_time=video_time_usage;
|
||||||
|
while(1)
|
||||||
{ unsigned char* start=NULL;
|
{ unsigned char* start=NULL;
|
||||||
int in_size;
|
int in_size;
|
||||||
// get it!
|
// get it!
|
||||||
@ -1521,6 +1522,7 @@ if(!sh_video) {
|
|||||||
current_module="decode_video";
|
current_module="decode_video";
|
||||||
// printf("Decode! %p %d \n",start,in_size);
|
// printf("Decode! %p %d \n",start,in_size);
|
||||||
blit_frame=decode_video(sh_video,start,in_size,drop_frame);
|
blit_frame=decode_video(sh_video,start,in_size,drop_frame);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
vdecode_time=video_time_usage-vdecode_time;
|
vdecode_time=video_time_usage-vdecode_time;
|
||||||
//------------------------ frame decoded. --------------------
|
//------------------------ frame decoded. --------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user