[vlc-commits] vdpau: fix picture corruption on pause

Rémi Denis-Courmont git at videolan.org
Tue Jul 9 21:21:49 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jul  9 22:20:24 2013 +0300| [0002b723242aa360259be5e67228e3b4c32bce65] | committer: Rémi Denis-Courmont

vdpau: fix picture corruption on pause

Regression from cae4f1c6a5e4062851fdda9c3e0b2ff5c639e079.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0002b723242aa360259be5e67228e3b4c32bce65
---

 modules/hw/vdpau/chroma.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/hw/vdpau/chroma.c b/modules/hw/vdpau/chroma.c
index 867dd10..cc88e6b 100644
--- a/modules/hw/vdpau/chroma.c
+++ b/modules/hw/vdpau/chroma.c
@@ -476,7 +476,8 @@ static picture_t *MixerRender(filter_t *filter, picture_t *src)
     /* Update history and take "present" picture field */
     if (likely(src != NULL))
     {
-        sys->history[MAX_PAST + MAX_FUTURE].field = vlc_vdp_video_detach(src);
+        sys->history[MAX_PAST + MAX_FUTURE].field =
+                                              vlc_vdp_video_copy(src->context);
         sys->history[MAX_PAST + MAX_FUTURE].date = src->date;
         sys->history[MAX_PAST + MAX_FUTURE].force = src->b_force;
         picture_Release(src);



More information about the vlc-commits mailing list