[vlc-commits] input: remove unused input_resource_ResetAout() function
Thomas Guillem
git at videolan.org
Fri Jun 28 09:11:10 CEST 2019
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Jun 27 10:08:24 2019 +0200| [72d3ebd544a49340127577b253a3a4914be604cb] | committer: Thomas Guillem
input: remove unused input_resource_ResetAout() function
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=72d3ebd544a49340127577b253a3a4914be604cb
---
include/vlc_decoder.h | 5 -----
src/input/resource.c | 16 ----------------
src/libvlccore.sym | 1 -
3 files changed, 22 deletions(-)
diff --git a/include/vlc_decoder.h b/include/vlc_decoder.h
index 992ada9687..01c5105c31 100644
--- a/include/vlc_decoder.h
+++ b/include/vlc_decoder.h
@@ -80,10 +80,5 @@ VLC_API audio_output_t *input_resource_GetAout( input_resource_t * );
*/
VLC_API void input_resource_PutAout( input_resource_t *, audio_output_t * );
-/**
- * Prevents the existing audio output (if any) from being recycled.
- */
-VLC_API void input_resource_ResetAout( input_resource_t * );
-
/** @} */
#endif
diff --git a/src/input/resource.c b/src/input/resource.c
index bdfe3cd90c..63f9e83c65 100644
--- a/src/input/resource.c
+++ b/src/input/resource.c
@@ -270,22 +270,6 @@ audio_output_t *input_resource_HoldAout( input_resource_t *p_resource )
return p_aout;
}
-void input_resource_ResetAout( input_resource_t *p_resource )
-{
- audio_output_t *p_aout = NULL;
-
- vlc_mutex_lock( &p_resource->lock_hold );
- if( !p_resource->b_aout_busy )
- p_aout = p_resource->p_aout;
-
- p_resource->p_aout = NULL;
- p_resource->b_aout_busy = false;
- vlc_mutex_unlock( &p_resource->lock_hold );
-
- if( p_aout != NULL )
- aout_Destroy( p_aout );
-}
-
/* Common */
input_resource_t *input_resource_New( vlc_object_t *p_parent )
{
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index f5d2a866db..3f506ca65b 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -212,7 +212,6 @@ input_resource_TerminateVout
input_resource_GetAout
input_resource_HoldAout
input_resource_PutAout
-input_resource_ResetAout
vlc_readdir_helper_init
vlc_readdir_helper_finish
vlc_readdir_helper_additem
More information about the vlc-commits
mailing list