Commit 1f71a52e authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: Input Manager, assert the customEvent type acceptance.

parent 50606d8f
......@@ -31,6 +31,8 @@
#include <QApplication>
#include <assert.h>
static int ItemChanged( vlc_object_t *, const char *,
vlc_value_t, vlc_value_t, void * );
static int PLItemChanged( vlc_object_t *, const char *,
......@@ -141,7 +143,7 @@ void InputManager::customEvent( QEvent *event )
int i_type = event->type();
IMEvent *ple = static_cast<IMEvent *>(event);
if ( i_type != PositionUpdate_Type &&
assert( !( i_type != PositionUpdate_Type &&
i_type != ItemChanged_Type &&
i_type != ItemRateChanged_Type &&
i_type != ItemTitleChanged_Type &&
......@@ -157,8 +159,7 @@ void InputManager::customEvent( QEvent *event )
i_type != CachingEvent_Type &&
i_type != BookmarksChanged_Type &&
i_type != InterfaceAoutUpdate_Type &&
i_type != RecordingEvent_Type )
return;
i_type != RecordingEvent_Type ) );
if( !hasInput() ) return;
......
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