st/vdpau: use dst surface size if clip width/height is zero
authorChristian König <deathsimple@vodafone.de>
Thu, 2 Feb 2012 16:10:58 +0000 (17:10 +0100)
committerChristian König <deathsimple@vodafone.de>
Mon, 6 Feb 2012 20:29:40 +0000 (21:29 +0100)
Just another fix for gstreamer.

Signed-off-by: Christian König <deathsimple@vodafone.de>
src/gallium/state_trackers/vdpau/presentation.c

index 0e086fc18b42ae89517b39e86f8d19253e4a8a3a..25a6c861115d78601e073e6b2ac0c519ed4ab097 100644 (file)
@@ -236,8 +236,8 @@ vlVdpPresentationQueueDisplay(VdpPresentationQueue presentation_queue,
 
    dst_clip.x = 0;
    dst_clip.y = 0;
-   dst_clip.w = clip_width;
-   dst_clip.h = clip_height;
+   dst_clip.w = clip_width ? clip_width : drawable_surface->width;
+   dst_clip.h = clip_height ? clip_height : drawable_surface->height;
 
    vl_compositor_clear_layers(&pq->compositor);
    vl_compositor_set_rgba_layer(&pq->compositor, 0, surf->sampler_view, &src_rect, NULL);