[vlc-commits] sout dummy: reorder to avoid forward declarations

Rémi Denis-Courmont git at videolan.org
Sat Oct 10 18:40:03 CEST 2020


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct 10 19:24:52 2020 +0300| [2754fde5f4e6d19b2198a67c5c32bcb9b8760dde] | committer: Rémi Denis-Courmont

sout dummy: reorder to avoid forward declarations

No functional changes.

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

 modules/stream_out/dummy.c | 60 +++++++++++++++++++---------------------------
 1 file changed, 25 insertions(+), 35 deletions(-)

diff --git a/modules/stream_out/dummy.c b/modules/stream_out/dummy.c
index 07686fd1c8..3fad0cf6b5 100644
--- a/modules/stream_out/dummy.c
+++ b/modules/stream_out/dummy.c
@@ -33,41 +33,6 @@
 #include <vlc_block.h>
 #include <vlc_sout.h>
 
-/*****************************************************************************
- * Exported prototypes
- *****************************************************************************/
-static int      Open    ( vlc_object_t * );
-
-static void *Add( sout_stream_t *, const es_format_t * );
-static void  Del ( sout_stream_t *, void * );
-static int   Send( sout_stream_t *, void *, block_t* );
-
-/*****************************************************************************
- * Module descriptor
- *****************************************************************************/
-vlc_module_begin ()
-    set_description( N_("Dummy stream output") )
-    set_capability( "sout output", 50 )
-    add_shortcut( "dummy", "drop" )
-    set_callback( Open )
-vlc_module_end ()
-
-/*****************************************************************************
- * Open:
- *****************************************************************************/
-static int Open( vlc_object_t *p_this )
-{
-    sout_stream_t *p_stream = (sout_stream_t*)p_this;
-
-    p_stream->pf_add    = Add;
-    p_stream->pf_del    = Del;
-    p_stream->pf_send   = Send;
-
-    p_stream->p_sys     = NULL;
-
-    return VLC_SUCCESS;
-}
-
 static void *Add( sout_stream_t *p_stream, const es_format_t *p_fmt )
 {
     VLC_UNUSED(p_stream); VLC_UNUSED(p_fmt);
@@ -87,3 +52,28 @@ static int Send( sout_stream_t *p_stream, void *id, block_t *p_buffer )
     return VLC_SUCCESS;
 }
 
+/*****************************************************************************
+ * Open:
+ *****************************************************************************/
+static int Open( vlc_object_t *p_this )
+{
+    sout_stream_t *p_stream = (sout_stream_t*)p_this;
+
+    p_stream->pf_add    = Add;
+    p_stream->pf_del    = Del;
+    p_stream->pf_send   = Send;
+
+    p_stream->p_sys     = NULL;
+
+    return VLC_SUCCESS;
+}
+
+/*****************************************************************************
+ * Module descriptor
+ *****************************************************************************/
+vlc_module_begin()
+    set_description(N_("Dummy stream output"))
+    set_capability("sout output", 50)
+    add_shortcut("dummy", "drop")
+    set_callback(Open )
+vlc_module_end()



More information about the vlc-commits mailing list