[vlc-devel] commit: Emit event to check inputchange in maininputmanager startup so ( Ilkka Ollakka )
git version control
git at videolan.org
Fri Jun 20 10:14:31 CEST 2008
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Fri Jun 20 11:15:14 2008 +0300| [afe61c02f07bd13df71e832992592c19047ade74]
Emit event to check inputchange in maininputmanager startup so
if playlist/item starts before that, it's noticed. Should
fix #1614 for qt4 part
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=afe61c02f07bd13df71e832992592c19047ade74
---
modules/gui/qt4/input_manager.cpp | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/modules/gui/qt4/input_manager.cpp b/modules/gui/qt4/input_manager.cpp
index 0ee8e0d..a5140a9 100644
--- a/modules/gui/qt4/input_manager.cpp
+++ b/modules/gui/qt4/input_manager.cpp
@@ -505,6 +505,13 @@ MainInputManager::MainInputManager( intf_thread_t *_p_intf )
/* Warn our embedded IM about input changes */
CONNECT( this, inputChanged( input_thread_t * ),
im, setInput( input_thread_t * ) );
+
+ /* emit check if playlist has allready started playing */
+ vlc_value_t val;
+ var_Change( THEPL, "playlist-current", VLC_VAR_CHOICESCOUNT, &val, NULL );
+ IMEvent *event = new IMEvent( ItemChanged_Type, val.i_int);
+ QApplication::postEvent( this, static_cast<QEvent*>(event) );
+
}
MainInputManager::~MainInputManager()
More information about the vlc-devel
mailing list