[MPlayer-dev-eng] [PATCH] DR support for vo_corevideo

Xidorn Quan quanxunzhen at gmail.com
Tue Sep 4 08:28:43 CEST 2012


On Tue, Sep 4, 2012 at 1:29 PM, Zongyao Qu <zongyao.qu at gmail.com> wrote:

> > This patch enables Direct Rendering support for vo_corevideo.
>
> Do you know or does anyone know whether draw_image and flip_page
> are running in same thread of not? If not, tearing could happen.
>

I think they are in the same thread.

Call chain for flip_page is:
   main (in mplayer.c)
-> flip_page

for draw_image is:
   main -> update_video [-> generate_video_frame] (in mplayer.c)
-> filter_video (in libmpcodecs/dec_video.c)
-> put_image (in vf's, the last is in vf_vo.c)
-> control -> draw_image (in vo)

Since code in mplayer.c itself do not spawn any threads, and filters
seem not to spawn threads as well, they should run in the same thread.


More information about the MPlayer-dev-eng mailing list