summaryrefslogtreecommitdiffstats
path: root/spudec.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-15 19:17:12 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-15 19:17:12 +0000
commitdffeec9ce10e7c3f44ec2aaba8b80952e231cf99 (patch)
tree1816f84e496f9e565333e161e69bfb4639b1a1fd /spudec.c
parent5814bcece380261027d0527fc7606b7808e529b0 (diff)
downloadmpv-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.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/spudec.c b/spudec.c
index c8ecf35a76..1ebf2c8653 100644
--- a/spudec.c
+++ b/spudec.c
@@ -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;