[vlc-commits] decoder: remove unused function

Rémi Denis-Courmont git at videolan.org
Fri Mar 15 02:28:10 CET 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Mar 12 21:03:40 2019 +0200| [898809b2fdc8bb14e1ae6369ad8d439e1dc3d9c3] | committer: Rémi Denis-Courmont

decoder: remove unused function

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

 src/input/decoder.c | 15 ---------------
 src/input/decoder.h |  7 -------
 2 files changed, 22 deletions(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index cf7fd43995..39f7ff8f52 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -2495,21 +2495,6 @@ size_t input_DecoderGetFifoSize( decoder_t *p_dec )
     return block_FifoSize( p_owner->p_fifo );
 }
 
-void input_DecoderGetObjects( decoder_t *p_dec,
-                              vout_thread_t **pp_vout, audio_output_t **pp_aout )
-{
-    struct decoder_owner *p_owner = dec_get_owner( p_dec );
-
-    vlc_mutex_lock( &p_owner->lock );
-    if( pp_vout )
-        *pp_vout = p_dec->fmt_in.i_cat == VIDEO_ES && p_owner->p_vout ?
-            vout_Hold(p_owner->p_vout) : NULL;
-    if( pp_aout )
-        *pp_aout = p_dec->fmt_in.i_cat == AUDIO_ES && p_owner->p_aout ?
-            aout_Hold(p_owner->p_aout) : NULL;
-    vlc_mutex_unlock( &p_owner->lock );
-}
-
 void input_DecoderSetVoutMouseEvent( decoder_t *dec, vlc_mouse_event mouse_event,
                                     void *user_data )
 {
diff --git a/src/input/decoder.h b/src/input/decoder.h
index 651bd13d69..f9928edb45 100644
--- a/src/input/decoder.h
+++ b/src/input/decoder.h
@@ -109,13 +109,6 @@ bool input_DecoderHasFormatChanged( decoder_t *p_dec, es_format_t *p_fmt, vlc_me
  */
 size_t input_DecoderGetFifoSize( decoder_t *p_dec );
 
-/**
- * This function returns the objects associated to a decoder
- *
- * They must be released.
- */
-void input_DecoderGetObjects( decoder_t *, vout_thread_t **, audio_output_t ** );
-
 void input_DecoderSetVoutMouseEvent( decoder_t *, vlc_mouse_event, void * );
 int  input_DecoderAddVoutOverlay( decoder_t *, subpicture_t *, int * );
 int  input_DecoderFlushVoutOverlay( decoder_t *, int );



More information about the vlc-commits mailing list