[vlc-devel] [PATCH v2 12/14] picture: make picture_priv_t private to picture.c

Steve Lhomme robux4 at ycbcr.xyz
Fri Aug 14 14:01:47 CEST 2020


The picture pool doesn't need to know about it anymore. It only needs a
picture_gc_t to create a clone.
---
 src/misc/picture.c | 6 ++++++
 src/misc/picture.h | 6 ------
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/misc/picture.c b/src/misc/picture.c
index 149111d74aa..3c527a44e9d 100644
--- a/src/misc/picture.c
+++ b/src/misc/picture.c
@@ -186,6 +186,12 @@ int picture_Setup( picture_t *p_picture, const video_format_t *restrict fmt )
  *
  *****************************************************************************/
 
+typedef struct
+{
+    picture_t    picture;
+    picture_gc_t gc;
+} picture_priv_t;
+
 static bool picture_InitPrivate(const video_format_t *restrict p_fmt,
                                 picture_t *p_picture)
 {
diff --git a/src/misc/picture.h b/src/misc/picture.h
index a4df027832c..d8a81a0d307 100644
--- a/src/misc/picture.h
+++ b/src/misc/picture.h
@@ -23,12 +23,6 @@
 
 #include <vlc_picture.h>
 
-typedef struct
-{
-    picture_t    picture;
-    picture_gc_t gc;
-} picture_priv_t;
-
 void *picture_Allocate(int *, size_t);
 void picture_Deallocate(int, void *, size_t);
 
-- 
2.26.2



More information about the vlc-devel mailing list