Commit 45052c77 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4: Deinline get(Aout|Vout)()

parent 9467836a
...@@ -848,6 +848,29 @@ MainInputManager::~MainInputManager() ...@@ -848,6 +848,29 @@ MainInputManager::~MainInputManager()
var_DelCallback( THEPL, "playlist-current", PLItemChanged, this ); 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 ) void MainInputManager::customEvent( QEvent *event )
{ {
int type = event->type(); int type = event->type();
......
...@@ -208,28 +208,10 @@ public: ...@@ -208,28 +208,10 @@ public:
input_thread_t *getInput() { return p_input; }; input_thread_t *getInput() { return p_input; };
InputManager *getIM() { return im; }; 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() vout_thread_t* getVout();
{ 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;
}
private: private:
MainInputManager( intf_thread_t * ); MainInputManager( intf_thread_t * );
static MainInputManager *instance; static MainInputManager *instance;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment