[vlc-commits] Qt: fix potential crash in UpdateVout()
Jean-Baptiste Kempf
git at videolan.org
Mon Mar 7 14:37:03 CET 2016
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Mar 7 14:36:36 2016 +0100| [7cdabacba83f67d883d23906db22850570d54125] | committer: Jean-Baptiste Kempf
Qt: fix potential crash in UpdateVout()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7cdabacba83f67d883d23906db22850570d54125
---
modules/gui/qt/input_manager.cpp | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/modules/gui/qt/input_manager.cpp b/modules/gui/qt/input_manager.cpp
index b16bb2b..f01fb67 100644
--- a/modules/gui/qt/input_manager.cpp
+++ b/modules/gui/qt/input_manager.cpp
@@ -617,9 +617,13 @@ void InputManager::UpdateEPG()
void InputManager::UpdateVout()
{
- /* Get current vout lists from input */
size_t i_vout;
vout_thread_t **pp_vout;
+
+ if( !p_input )
+ return;
+
+ /* Get current vout lists from input */
if( input_Control( p_input, INPUT_GET_VOUTS, &pp_vout, &i_vout ) )
{
i_vout = 0;
More information about the vlc-commits
mailing list