Mercurial > mplayer.hg
comparison libmpcodecs/vf_ass.c @ 25813:ba7bd4f7e322
Add global ass_force_reload flag.
If it is set, renderer is reconfigured before the next frame.
author | eugeni |
---|---|
date | Wed, 23 Jan 2008 21:18:30 +0000 |
parents | c2b7ba444ade |
children | 82601a38e2a7 |
comparison
equal
deleted
inserted
replaced
25812:04773888ae2a | 25813:ba7bd4f7e322 |
---|---|
324 | 324 |
325 static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts) | 325 static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts) |
326 { | 326 { |
327 ass_image_t* images = 0; | 327 ass_image_t* images = 0; |
328 if (sub_visibility && vf->priv->ass_priv && ass_track && (pts != MP_NOPTS_VALUE)) | 328 if (sub_visibility && vf->priv->ass_priv && ass_track && (pts != MP_NOPTS_VALUE)) |
329 images = ass_render_frame(vf->priv->ass_priv, ass_track, (pts+sub_delay) * 1000 + .5, NULL); | 329 images = ass_mp_render_frame(vf->priv->ass_priv, ass_track, (pts+sub_delay) * 1000 + .5, NULL); |
330 | 330 |
331 prepare_image(vf, mpi); | 331 prepare_image(vf, mpi); |
332 if (images) render_frame(vf, mpi, images); | 332 if (images) render_frame(vf, mpi, images); |
333 | 333 |
334 return vf_next_put_image(vf, vf->dmpi, pts); | 334 return vf_next_put_image(vf, vf->dmpi, pts); |