[vlc-commits] vout: keep vout_thread_sys_t private
Steve Lhomme
git at videolan.org
Fri Jul 17 08:18:15 CEST 2020
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jul 16 13:45:39 2020 +0200| [5faa8e75931f33e976c13f2cc49d6df63f1da836] | committer: Steve Lhomme
vout: keep vout_thread_sys_t private
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5faa8e75931f33e976c13f2cc49d6df63f1da836
---
include/vlc_vout.h | 7 +------
src/video_output/video_output.c | 2 +-
src/video_output/vout_internal.h | 5 ++++-
3 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/include/vlc_vout.h b/include/vlc_vout.h
index adfc15a0f0..2903dda346 100644
--- a/include/vlc_vout.h
+++ b/include/vlc_vout.h
@@ -44,11 +44,6 @@
* Video output thread interface
*/
-/**
- * Video output thread private structure
- */
-typedef struct vout_thread_sys_t vout_thread_sys_t;
-
/**
* Video output thread descriptor
*
@@ -60,7 +55,7 @@ struct vout_thread_t {
struct vlc_object_t obj;
/* Private vout_thread data */
- vout_thread_sys_t *p;
+ void *p;
};
/* Alignment flags */
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 4d8e706895..f72f59df26 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1889,7 +1889,7 @@ static vout_thread_t *vout_CreateCommon(vlc_object_t *object)
{
/* Allocate descriptor */
vout_thread_t *vout = vlc_custom_create(object,
- sizeof(*vout) + sizeof(*vout->p),
+ sizeof(*vout) + sizeof(vout_thread_sys_t),
"video output");
if (!vout)
return NULL;
diff --git a/src/video_output/vout_internal.h b/src/video_output/vout_internal.h
index 1ce5550db6..106c48ca0d 100644
--- a/src/video_output/vout_internal.h
+++ b/src/video_output/vout_internal.h
@@ -60,7 +60,10 @@ enum vout_crop_mode {
VOUT_CROP_NONE, VOUT_CROP_RATIO, VOUT_CROP_WINDOW, VOUT_CROP_BORDER,
};
-/* */
+/**
+ * Video output thread private structure
+ */
+typedef struct vout_thread_sys_t vout_thread_sys_t;
struct vout_thread_sys_t
{
bool dummy;
More information about the vlc-commits
mailing list