[vlc-commits] access_out_dummy: remove useless Close()

Rémi Denis-Courmont git at videolan.org
Wed Aug 2 17:19:08 CEST 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug  2 18:14:07 2017 +0300| [162dc4987de09d79ec79c95edd3f65286ef7c0c1] | committer: Rémi Denis-Courmont

access_out_dummy: remove useless Close()

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

 modules/access_output/dummy.c | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)

diff --git a/modules/access_output/dummy.c b/modules/access_output/dummy.c
index ba656e2663..d7aa646265 100644
--- a/modules/access_output/dummy.c
+++ b/modules/access_output/dummy.c
@@ -38,7 +38,6 @@
  * Module descriptor
  *****************************************************************************/
 static int  Open ( vlc_object_t * );
-static void Close( vlc_object_t * );
 
 vlc_module_begin ()
     set_description( N_("Dummy stream output") )
@@ -47,7 +46,7 @@ vlc_module_begin ()
     set_category( CAT_SOUT )
     set_subcategory( SUBCAT_SOUT_ACO )
     add_shortcut( "dummy" )
-    set_callbacks( Open, Close )
+    set_callbacks( Open, NULL )
 vlc_module_end ()
 
 
@@ -63,23 +62,12 @@ static int Open( vlc_object_t *p_this )
 {
     sout_access_out_t   *p_access = (sout_access_out_t*)p_this;
 
-    p_access->p_sys    = NULL;
     p_access->pf_write = Write;
 
-    msg_Dbg( p_access, "dummy stream output access opened" );
     return VLC_SUCCESS;
 }
 
 /*****************************************************************************
- * Close: close the target
- *****************************************************************************/
-static void Close( vlc_object_t * p_this )
-{
-    sout_access_out_t   *p_access = (sout_access_out_t*)p_this;
-    msg_Dbg( p_access, "dummy stream output access closed" );
-}
-
-/*****************************************************************************
  * Read: standard read on a file descriptor.
  *****************************************************************************/
 static ssize_t Write( sout_access_out_t *p_access, block_t *p_buffer )



More information about the vlc-commits mailing list