]> git.sesse.net Git - vlc/commitdiff
Qt4: Deinline get(Aout|Vout)()
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 19 Jan 2009 16:27:36 +0000 (17:27 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 19 Jan 2009 16:27:36 +0000 (17:27 +0100)
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.hpp

index ab1f21251c0f54b2f3a5becc21018dbdd0ccd10b..8978060f70de469be2bc4f857aa97d0c461cbb78 100644 (file)
@@ -848,6 +848,29 @@ MainInputManager::~MainInputManager()
     var_DelCallback( THEPL, "playlist-current", PLItemChanged, this );
 }
 
+vout_thread_t* MainInputManager::getVout()
+{
+    vout_thread_t **pp_vout; int i_vout;
+    if( p_input && !input_Control( p_input, INPUT_GET_VOUTS, &pp_vout, &i_vout ) )
+    {
+        for( int i = 1; i < i_vout; i++ ) vlc_object_release( pp_vout[i]);
+        vout_thread_t *p_tmp = pp_vout[0];
+        free( pp_vout );
+        return p_tmp;
+    }
+    return NULL;
+}
+
+aout_instance_t * MainInputManager::getAout()
+{
+    aout_instance_t *p_aout;
+    if( p_input && !input_Control( p_input, INPUT_GET_AOUT, &p_aout ) )
+    {
+        return p_aout;
+    }
+    return NULL;
+}
+
 void MainInputManager::customEvent( QEvent *event )
 {
     int type = event->type();
index d8df234d3798dc3926fa578a1d7aacc1938b0b4c..b153d1566d36cf8da87a5e698c1abab7973b0c7d 100644 (file)
@@ -208,28 +208,10 @@ public:
 
     input_thread_t *getInput() { return p_input; };
     InputManager *getIM() { return im; };
-    vout_thread_t * getVout()
-    {
-        vout_thread_t **pp_vout; int i_vout;
-        if( p_input && !input_Control( p_input, INPUT_GET_VOUTS, &pp_vout, &i_vout ) )
-        {
-            for( int i = 1; i < i_vout; i++ ) vlc_object_release( pp_vout[i]);
-            vout_thread_t *p_tmp = pp_vout[0];
-            free( pp_vout );
-            return p_tmp;
-        }
-        return NULL;
-    }
 
-    aout_instance_t *getAout()
-    {
-        aout_instance_t *p_aout;
-        if( p_input && !input_Control( p_input, INPUT_GET_AOUT, &p_aout ) )
-        {
-            return p_aout;
-        }
-        return NULL;
-    }
+    vout_thread_t* getVout();
+    aout_instance_t *getAout();
+
 private:
     MainInputManager( intf_thread_t * );
     static MainInputManager *instance;