[vlc-commits] qt4: fix the main input manager initialization.
Erwan Tulou
git at videolan.org
Tue Feb 21 19:11:45 CET 2012
vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Tue Feb 21 16:39:58 2012 +0100| [0c1f7006bd6f4915d20d14a411ac1854aa5d7703] | committer: Erwan Tulou
qt4: fix the main input manager initialization.
This fixes a bug reported on the forum at
http://forum.videolan.org/viewtopic.php?f=2&t=98332
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0c1f7006bd6f4915d20d14a411ac1854aa5d7703
---
modules/gui/qt4/input_manager.cpp | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/modules/gui/qt4/input_manager.cpp b/modules/gui/qt4/input_manager.cpp
index 485c9b0..2404572 100644
--- a/modules/gui/qt4/input_manager.cpp
+++ b/modules/gui/qt4/input_manager.cpp
@@ -950,6 +950,14 @@ MainInputManager::MainInputManager( intf_thread_t *_p_intf )
DCONNECT( this, inputChanged( input_thread_t * ),
im, setInput( input_thread_t * ) );
+ /* initialize p_input (an input can already be running) */
+ p_input = playlist_CurrentInput( pl_Get(p_intf) );
+ if( p_input )
+ {
+ if( !p_intf->p_sys->b_isDialogProvider )
+ var_AddCallback( p_input, "state", PLItemChanged, this );
+ emit inputChanged( p_input );
+ }
}
MainInputManager::~MainInputManager()
More information about the vlc-commits
mailing list