[vlc-devel] [PATCH 6/8] input: make the input_source_t struct public
Thomas Guillem
thomas at gllm.fr
Fri Feb 28 08:36:28 CET 2020
But continue to hide its definition and usage. It will just be used to passed
from demuxers to the display es_out that will actually use it.
---
include/vlc_common.h | 1 +
src/input/input_internal.h | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/include/vlc_common.h b/include/vlc_common.h
index e4c5cd85c95..d5e9f1eb710 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -356,6 +356,7 @@ typedef struct config_category_t config_category_t;
/* Input */
typedef struct input_item_t input_item_t;
typedef struct input_item_node_t input_item_node_t;
+typedef struct input_source_t input_source_t;
typedef struct stream_t stream_t;
typedef struct stream_t demux_t;
typedef struct es_out_t es_out_t;
diff --git a/src/input/input_internal.h b/src/input/input_internal.h
index f10b6243e35..3b46771a3d5 100644
--- a/src/input/input_internal.h
+++ b/src/input/input_internal.h
@@ -365,7 +365,7 @@ input_item_t* input_GetItem( input_thread_t * ) VLC_USED;
#define INPUT_CONTROL_FIFO_SIZE 100
/* input_source_t: gathers all information per input source */
-typedef struct
+struct input_source_t
{
vlc_atomic_rc_t rc;
@@ -401,7 +401,7 @@ typedef struct
bool b_eof; /* eof of demuxer */
-} input_source_t;
+};
typedef union
{
--
2.20.1
More information about the vlc-devel
mailing list