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>
This commit is contained in:
Christian König 2012-03-05 16:44:42 +01:00
parent 7236f170e4
commit 2e5f3cdca5

View file

@ -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 = {