[vlc-commits] vout:win32: remove unused CommonUpdatePicture()

Steve Lhomme git at videolan.org
Mon Feb 25 14:34:19 CET 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Feb 25 14:19:02 2019 +0100| [d8164dd6b9a2147751d62a815f4d802c825051c0] | committer: Steve Lhomme

vout:win32: remove unused CommonUpdatePicture()

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

 modules/video_output/win32/common.c | 24 ------------------------
 modules/video_output/win32/common.h |  1 -
 2 files changed, 25 deletions(-)

diff --git a/modules/video_output/win32/common.c b/modules/video_output/win32/common.c
index 54469e2845..2b2ab0f678 100644
--- a/modules/video_output/win32/common.c
+++ b/modules/video_output/win32/common.c
@@ -434,30 +434,6 @@ void CommonDisplay(vout_display_t *vd)
 }
 #endif
 
-/**
- * It updates a picture data/pitches.
- */
-int CommonUpdatePicture(picture_t *picture, picture_t **fallback,
-                        uint8_t *data, unsigned pitch)
-{
-    if (fallback) {
-        if (*fallback == NULL) {
-            *fallback = picture_NewFromFormat(&picture->format);
-            if (*fallback == NULL)
-                return VLC_EGENERIC;
-        }
-        for (int n = 0; n < picture->i_planes; n++) {
-            const plane_t *src = &(*fallback)->p[n];
-            plane_t       *dst = &picture->p[n];
-            dst->p_pixels = src->p_pixels;
-            dst->i_pitch  = src->i_pitch;
-            dst->i_lines  = src->i_lines;
-        }
-        return VLC_SUCCESS;
-    }
-    return picture_UpdatePlanes(picture, data, pitch);
-}
-
 void AlignRect(RECT *r, int align_boundary, int align_size)
 {
     if (align_boundary)
diff --git a/modules/video_output/win32/common.h b/modules/video_output/win32/common.h
index 6b20efa4ba..275e65b5a0 100644
--- a/modules/video_output/win32/common.h
+++ b/modules/video_output/win32/common.h
@@ -95,7 +95,6 @@ void CommonClean(vout_display_t *);
 void CommonManage(vout_display_t *);
 int  CommonControl(vout_display_t *, int , va_list );
 void CommonDisplay(vout_display_t *);
-int  CommonUpdatePicture(picture_t *, picture_t **fallback, uint8_t *plane, unsigned pitch);
 
 void UpdateRects (vout_display_t *, bool is_forced);
 void AlignRect(RECT *, int align_boundary, int align_size);



More information about the vlc-commits mailing list