summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian König <deathsimple@vodafone.de>2012-03-05 16:44:42 +0100
committerChristian König <deathsimple@vodafone.de>2012-03-08 14:13:14 +0100
commitbccdce8c1e488d8f0d5c5c209a552989f2bdf185 (patch)
tree4c933ef80624994e2d737c60812a3dfa5cd4304f
parent9fbfc0a940679f9bd64c4f93ff22e71f3d1993f8 (diff)
st/vdpau: add xine workaround
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@vodafone.de>
-rw-r--r--src/gallium/state_trackers/vdpau/surface.c2
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 9162602250..c829c1ff7d 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 = {