[vlc-devel] [PATCH] edummy: remove empty close callback

Steve Lhomme robux4 at ycbcr.xyz
Tue Jan 12 16:41:57 UTC 2021


---
 modules/codec/edummy.c | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/modules/codec/edummy.c b/modules/codec/edummy.c
index d554f441b76..89ad5f6c2e2 100644
--- a/modules/codec/edummy.c
+++ b/modules/codec/edummy.c
@@ -32,13 +32,12 @@
 #include <vlc_codec.h>
 
 static int OpenEncoder( vlc_object_t * );
-static void CloseEncoder( vlc_object_t * );
 
 vlc_module_begin ()
     set_shortname( N_("Dummy") )
     set_description( N_("Dummy encoder") )
     set_capability( "encoder", 0 )
-    set_callbacks( OpenEncoder, CloseEncoder )
+    set_callback( OpenEncoder )
     add_shortcut( "dummy" )
 vlc_module_end ()
 
@@ -79,11 +78,3 @@ static block_t *EncodeAudio( encoder_t *p_enc, block_t *p_buf )
     VLC_UNUSED(p_enc); VLC_UNUSED(p_buf);
     return NULL;
 }
-
-/*****************************************************************************
- * CloseDecoder: decoder destruction
- *****************************************************************************/
-static void CloseEncoder( vlc_object_t *p_this )
-{
-    VLC_UNUSED(p_this);
-}
-- 
2.29.2



More information about the vlc-devel mailing list