[vlc-commits] vdpau: eliminate dead code

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:21:26 2013 +0300| [fb21b6d1d9db67b90f51603b6086084d8c2e8821] | committer: Rémi Denis-Courmont

vdpau: eliminate dead code

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

 modules/hw/vdpau/chroma.c    |    1 -
 modules/hw/vdpau/picture.c   |   11 -----------
 modules/hw/vdpau/vlc_vdpau.h |    6 ------
 3 files changed, 18 deletions(-)

diff --git a/modules/hw/vdpau/chroma.c b/modules/hw/vdpau/chroma.c
index cc88e6b..c534a81 100644
--- a/modules/hw/vdpau/chroma.c
+++ b/modules/hw/vdpau/chroma.c
@@ -472,7 +472,6 @@ static picture_t *MixerRender(filter_t *filter, picture_t *src)
     }
 
     src = sys->import(filter, src);
-
     /* Update history and take "present" picture field */
     if (likely(src != NULL))
     {
diff --git a/modules/hw/vdpau/picture.c b/modules/hw/vdpau/picture.c
index fbbdc3f..c488a6c 100644
--- a/modules/hw/vdpau/picture.c
+++ b/modules/hw/vdpau/picture.c
@@ -110,14 +110,3 @@ vlc_vdp_video_field_t *vlc_vdp_video_copy(vlc_vdp_video_field_t *fold)
     atomic_fetch_add(&frame->refs, 1);
     return fnew;
 }
-
-vlc_vdp_video_field_t *vlc_vdp_video_detach(picture_t *pic)
-{
-    vlc_vdp_video_field_t *field = pic->context;
-
-    assert(pic->format.i_chroma == VLC_CODEC_VDPAU_VIDEO_420
-        || pic->format.i_chroma == VLC_CODEC_VDPAU_VIDEO_422);
-    //assert(!picture_IsReferenced(pic));
-    pic->context = NULL;
-    return field;
-}
diff --git a/modules/hw/vdpau/vlc_vdpau.h b/modules/hw/vdpau/vlc_vdpau.h
index cf02a85..829a828 100644
--- a/modules/hw/vdpau/vlc_vdpau.h
+++ b/modules/hw/vdpau/vlc_vdpau.h
@@ -275,10 +275,4 @@ VdpStatus vlc_vdp_video_attach(vdp_t *, VdpVideoSurface, picture_t *);
  * (the underlying VDPAU video surface is shared).
  */
 vlc_vdp_video_field_t *vlc_vdp_video_copy(vlc_vdp_video_field_t *);
-
-/**
- * Detaches a VDPAU video surface as context from a VLC picture.
- * @return the detached context, or NULL on error.
- */
-vlc_vdp_video_field_t *vlc_vdp_video_detach(picture_t *);
 #endif



More information about the vlc-commits mailing list