Commit 8f5550f3 authored by Steve Lhomme's avatar Steve Lhomme

mkv.cpp: make the UI hook silent when it's not used

parent b555e6c3
......@@ -2342,6 +2342,13 @@ int demux_sys_t::EventThread( vlc_object_t *p_this )
/* main loop */
while( !p_ev->b_die )
{
if ( !p_sys->b_pci_packet_set )
{
/* Wait 100ms */
msleep( 100000 );
continue;
}
vlc_bool_t b_activated = VLC_FALSE;
/* KEY part */
......@@ -2353,14 +2360,6 @@ int demux_sys_t::EventThread( vlc_object_t *p_this )
vlc_mutex_lock( &p_ev->lock );
if ( !p_sys->b_pci_packet_set )
{
vlc_mutex_unlock( &p_ev->lock );
/* Wait 100ms */
msleep( 100000 );
continue;
}
pci_t *pci = (pci_t *) &p_sys->pci_packet;
var_Get( p_ev->p_vlc, "key-pressed", &valk );
......
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