[vlc-commits] input: Remove now unused input_AddSubtitle and input_AddSubtitleOSD
Hugo Beauzée-Luyssen
git at videolan.org
Thu Sep 21 17:49:16 CEST 2017
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Sep 21 12:36:52 2017 +0200| [f41d10cf7e7b64d33bb80f8c1cc4c23773f1797f] | committer: Hugo Beauzée-Luyssen
input: Remove now unused input_AddSubtitle and input_AddSubtitleOSD
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f41d10cf7e7b64d33bb80f8c1cc4c23773f1797f
---
include/vlc_input.h | 22 ----------------------
1 file changed, 22 deletions(-)
diff --git a/include/vlc_input.h b/include/vlc_input.h
index 7fa33a2064..d225f1e3f2 100644
--- a/include/vlc_input.h
+++ b/include/vlc_input.h
@@ -575,28 +575,6 @@ static inline vout_thread_t *input_GetVout( input_thread_t *p_input )
return p_vout;
}
-/**
- * It will add a new subtitle source to the input.
- * Provided for convenience.
- */
-static inline int input_AddSubtitleOSD( input_thread_t *p_input, const char *psz_path,
- bool b_check_extension, bool b_osd )
-{
- int i_result = input_Control( p_input, INPUT_ADD_SUBTITLE, psz_path, b_check_extension );
- if( i_result != VLC_SUCCESS || !b_osd )
- return i_result;
-
- vout_thread_t *p_vout = input_GetVout( p_input );
- if( p_vout )
- {
- vout_OSDMessage(p_vout, VOUT_SPU_CHANNEL_OSD, "%s",
- vlc_gettext("Subtitle track added") );
- vlc_object_release( (vlc_object_t *)p_vout );
- }
- return i_result;
-}
-#define input_AddSubtitle(a, b, c) input_AddSubtitleOSD(a, b, c, false)
-
static inline int input_AddSlave( input_thread_t *p_input, enum slave_type type,
const char *psz_uri, bool b_forced, bool b_notify )
{
More information about the vlc-commits
mailing list