[vlc-commits] input: deinline input_(Hold|Release)

Rémi Denis-Courmont git at videolan.org
Sun Mar 17 02:39:08 CET 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Mar 16 09:24:35 2019 +0200| [87a5c5ed432c6d906c78cf4debae18af41c6c525] | committer: Rémi Denis-Courmont

input: deinline input_(Hold|Release)

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

 include/vlc_objects.h | 12 ++----------
 src/input/input.c     | 11 +++++++++++
 src/libvlccore.sym    |  2 ++
 3 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/include/vlc_objects.h b/include/vlc_objects.h
index 733335b45f..3062b63487 100644
--- a/include/vlc_objects.h
+++ b/include/vlc_objects.h
@@ -178,16 +178,8 @@ static inline libvlc_int_t *vlc_object_instance(vlc_object_t *obj)
 #define vlc_object_instance(o) vlc_object_instance(VLC_OBJECT(o))
 
 /* Here for backward compatibility. TODO: Move to <vlc_input.h>! */
-static inline input_thread_t *input_Hold(input_thread_t *input)
-{
-    vlc_object_hold((vlc_object_t *)input);
-    return input;
-}
-
-static inline void input_Release(input_thread_t *input)
-{
-    vlc_object_release((vlc_object_t *)input);
-}
+VLC_API input_thread_t *input_Hold(input_thread_t *input);
+VLC_API void input_Release(input_thread_t *input);
 
 /* Here for backward compatibility. TODO: Move to <vlc_vout.h>! */
 static inline vout_thread_t *vout_Hold(vout_thread_t *vout)
diff --git a/src/input/input.c b/src/input/input.c
index b4c7aa5b1e..9a2500735f 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -517,6 +517,17 @@ static input_thread_t *Create( vlc_object_t *p_parent,
     return p_input;
 }
 
+input_thread_t *input_Hold(input_thread_t *input)
+{
+    (vlc_object_hold)(VLC_OBJECT(input));
+    return input;
+}
+
+void input_Release(input_thread_t *input)
+{
+    (vlc_object_release)(VLC_OBJECT(input));
+}
+
 /*****************************************************************************
  * Run: main thread loop
  * This is the "normal" thread that spawns the input processing chain,
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index 374bbab4c5..6e5fc48aa6 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -218,6 +218,8 @@ input_resource_PutAout
 input_resource_ResetAout
 input_Start
 input_Stop
+input_Hold
+input_Release
 input_vaControl
 input_SetTime
 input_SetPosition



More information about the vlc-commits mailing list