Mercurial > mplayer.hg
diff libmpcodecs/dec_video.c @ 7368:a894e99c1e51
changing return type of put_image void->int
| author | arpi |
|---|---|
| date | Tue, 10 Sep 2002 22:18:32 +0000 |
| parents | 09c8c9cca9e4 |
| children | 6a2b6f3d619c |
line wrap: on
line diff
--- a/libmpcodecs/dec_video.c Tue Sep 10 22:10:06 2002 +0000 +++ b/libmpcodecs/dec_video.c Tue Sep 10 22:18:32 2002 +0000 @@ -212,6 +212,7 @@ unsigned int t=GetTimer(); unsigned int t2; double tt; +int ret; //if(!(sh_video->ds->flags&1) || sh_video->ds->pack_no<5) mpi=mpvdec->decode(sh_video, start, in_size, drop_frame); @@ -237,12 +238,12 @@ //vo_draw_image(video_out,mpi); vf=sh_video->vfilter; -vf->put_image(vf,mpi); -vf->control(vf,VFCTRL_DRAW_OSD,NULL); +ret = vf->put_image(vf,mpi); // apply video filters and call the leaf vo/ve +if(ret>0) vf->control(vf,VFCTRL_DRAW_OSD,NULL); t2=GetTimer()-t2; tt=t2*0.000001f; vout_time_usage+=tt; - return 1; +return ret; }
