diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-02-19 03:23:50 +0200 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-02-19 03:23:50 +0200 |
commit | e46317a1db077a7f92ea5db7bb76e6cc899f1a64 (patch) | |
tree | 077078d79610f76cce2e38217f452a4da2b9287c /libmpcodecs/vf_vo.c | |
parent | 186e5a998c8424b3c850b62d6f5755a0928cd64c (diff) | |
parent | 908286b437f3b8c8564db3c77456d5350588fb17 (diff) | |
download | mpv-e46317a1db077a7f92ea5db7bb76e6cc899f1a64.tar.bz2 mpv-e46317a1db077a7f92ea5db7bb76e6cc899f1a64.tar.xz |
Merge svn changes up to r28655
Diffstat (limited to 'libmpcodecs/vf_vo.c')
-rw-r--r-- | libmpcodecs/vf_vo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpcodecs/vf_vo.c b/libmpcodecs/vf_vo.c index 09425adcb0..2e4257fb21 100644 --- a/libmpcodecs/vf_vo.c +++ b/libmpcodecs/vf_vo.c @@ -33,6 +33,7 @@ struct vf_priv_s { #define video_out (vf->priv->vo) static int query_format(struct vf_instance* vf, unsigned int fmt); /* forward declaration */ +static void draw_slice(struct vf_instance *vf, unsigned char **src, int *stride, int w,int h, int x, int y); static int config(struct vf_instance* vf, int width, int height, int d_width, int d_height, @@ -60,6 +61,7 @@ static int config(struct vf_instance* vf, // save vo's stride capability for the wanted colorspace: vf->default_caps=query_format(vf,outfmt); + vf->draw_slice = (vf->default_caps & VOCAP_NOSLICES) ? NULL : draw_slice; if (vo_config(video_out, width, height, d_width, d_height, flags, "MPlayer", outfmt)) return 0; |