[Mesa-dev] [PATCH 2/2] st/vdpau: use dst surface size if clip width/height is zero
Christian König
deathsimple at vodafone.de
Mon Feb 6 03:50:59 PST 2012
Just another fix for gstreamer.
Signed-off-by: Christian König <deathsimple at vodafone.de>
---
src/gallium/state_trackers/vdpau/presentation.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/gallium/state_trackers/vdpau/presentation.c b/src/gallium/state_trackers/vdpau/presentation.c
index 0e086fc..ba1e7c8 100644
--- a/src/gallium/state_trackers/vdpau/presentation.c
+++ b/src/gallium/state_trackers/vdpau/presentation.c
@@ -215,6 +215,8 @@ vlVdpPresentationQueueDisplay(VdpPresentationQueue presentation_queue,
struct pipe_surface *drawable_surface;
struct pipe_video_rect src_rect, dst_clip;
+ VDPAU_MSG(VDPAU_TRACE, "[VDPAU] PresentationQueueDisplay\n");
+
pq = vlGetDataHTAB(presentation_queue);
if (!pq)
return VDP_STATUS_INVALID_HANDLE;
@@ -236,8 +238,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);
--
1.7.5.4
More information about the mesa-dev
mailing list