From 2e5f3cdca51e08320f38089f627fd059b7ebfa99 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20K=C3=B6nig?= Date: Mon, 5 Mar 2012 16:44:42 +0100 Subject: [PATCH] st/vdpau: add xine workaround MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit For reasons I don't understand xine tries to set the surface format by using a zero pitch. Signed-off-by: Christian König --- src/gallium/state_trackers/vdpau/surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/vdpau/surface.c b/src/gallium/state_trackers/vdpau/surface.c index 91626022501..c829c1ff7de 100644 --- a/src/gallium/state_trackers/vdpau/surface.c +++ b/src/gallium/state_trackers/vdpau/surface.c @@ -292,7 +292,7 @@ vlVdpVideoSurfacePutBitsYCbCr(VdpVideoSurface surface, for (i = 0; i < 3; ++i) { struct pipe_sampler_view *sv = sampler_views[i]; - if (!sv) continue; + if (!sv || !source_pitches[i]) continue; for (j = 0; j < sv->texture->depth0; ++j) { struct pipe_box dst_box = { -- 2.30.2