[vlc-devel] commit: Emit statuschange in qt4-interface when video-es change ( track-count changes) (Ilkka Ollakka )
git version control
git at videolan.org
Fri Aug 8 11:32:56 CEST 2008
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Fri Aug 8 12:32:36 2008 +0300| [b7309d0b856642e69abd5ed1986e9d498104427f] | committer: Ilkka Ollakka
Emit statuschange in qt4-interface when video-es change (track-count changes)
this should fix #1778, because with ts-files you don't allways have info about
video-tracks when input is started (and qt4 interface only called
controls->updateInput when status changed).
I didn't create new callback/signal for this one, but it could be cleaner that way.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b7309d0b856642e69abd5ed1986e9d498104427f
---
modules/gui/qt4/input_manager.cpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/gui/qt4/input_manager.cpp b/modules/gui/qt4/input_manager.cpp
index 955c863..c12db37 100644
--- a/modules/gui/qt4/input_manager.cpp
+++ b/modules/gui/qt4/input_manager.cpp
@@ -141,6 +141,9 @@ void InputManager::addCallbacks()
var_AddCallback( p_input, "state", ItemStateChanged, this );
/* src/input/es-out.c:552 */
var_AddCallback( p_input, "spu-es", ChangeSPU, this );
+ /* emit UpdateStatus so that main_interface updates controls
+ * if there is new videotracks (mpeg-ts)*/
+ var_AddCallback( p_input, "video-es", ItemStateChanged, this );
/* src/input/es-out.c: */
var_AddCallback( p_input, "teletext-es", ChangeTeletext, this );
/* src/input/input.c:1765 */
@@ -155,6 +158,7 @@ void InputManager::addCallbacks()
void InputManager::delCallbacks()
{
var_DelCallback( p_input, "spu-es", ChangeSPU, this );
+ var_DelCallback( p_input, "video-es", ItemStateChanged, this );
var_DelCallback( p_input, "teletext-es", ChangeTeletext, this );
var_DelCallback( p_input, "state", ItemStateChanged, this );
var_DelCallback( p_input, "rate-change", ItemRateChanged, this );
More information about the vlc-devel
mailing list