diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-04-15 19:17:12 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-04-15 19:17:12 +0000 |
commit | dffeec9ce10e7c3f44ec2aaba8b80952e231cf99 (patch) | |
tree | 1816f84e496f9e565333e161e69bfb4639b1a1fd /spudec.c | |
parent | 5814bcece380261027d0527fc7606b7808e529b0 (diff) | |
download | mpv-dffeec9ce10e7c3f44ec2aaba8b80952e231cf99.tar.bz2 mpv-dffeec9ce10e7c3f44ec2aaba8b80952e231cf99.tar.xz |
new osd code, use osd objs to follow changes and do minimal updates
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5639 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'spudec.c')
-rw-r--r-- | spudec.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -368,6 +368,13 @@ void spudec_heartbeat(void *this, unsigned int pts100) ((spudec_handle_t *)this)->now_pts = pts100; } +int spudec_visible(void *this){ + spudec_handle_t *spu = (spudec_handle_t *)this; + int ret=(spu->start_pts <= spu->now_pts && spu->now_pts < spu->end_pts); +// printf("spu visible: %d \n",ret); + return ret; +} + void spudec_draw(void *this, void (*draw_alpha)(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride)) { spudec_handle_t *spu = (spudec_handle_t *)this; |