[Mesa-dev] [PATCH 8/9] st/vdpau: add xine workaround
Christian König
deathsimple at vodafone.de
Wed Mar 7 06:49:32 PST 2012
For reasons I don't understand xine tries to set
the surface format by using a zero pitch.
Signed-off-by: Christian König <deathsimple at vodafone.de>
---
src/gallium/state_trackers/vdpau/surface.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/state_trackers/vdpau/surface.c b/src/gallium/state_trackers/vdpau/surface.c
index 9162602..c829c1f 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 = {
--
1.7.5.4
More information about the mesa-dev
mailing list