}
tk->i_last_dts = p_block->i_dts;
-#if 0
+#if 1
msg_Dbg( p_demux, "block i_dts: "I64Fd" / i_pts: "I64Fd, p_block->i_dts, p_block->i_pts);
#endif
if( strcmp( tk->psz_codec, "S_VOBSUB" ) )
p_block->i_length = i_duration * 1000;
}
- if( p_sys->i_pts >= p_sys->i_start_pts )
- {
- es_out_Control( p_demux->out, ES_OUT_SET_PCR, p_sys->i_pts );
- }
-
es_out_Send( p_demux->out, tk->p_es, p_block );
/* use time stamp only for first block */
event_thread_t *p_ev = (event_thread_t *) p_data;
vlc_mutex_lock( &p_ev->lock );
if( psz_var[6] == 'c' )
+ {
p_ev->b_clicked = VLC_TRUE;
+ msg_Dbg( p_this, "Event Mouse: clicked");
+ }
else if( psz_var[6] == 'm' )
p_ev->b_moved = VLC_TRUE;
vlc_mutex_unlock( &p_ev->lock );
vlc_mutex_lock( &p_ev->lock );
p_ev->b_key = VLC_TRUE;
vlc_mutex_unlock( &p_ev->lock );
+ msg_Dbg( p_this, "Event Key");
return VLC_SUCCESS;
}
struct vlc_t::hotkey *p_hotkeys = p_ev->p_vlc->p_hotkeys;
int i, i_action = -1;
+ msg_Dbg( p_ev->p_demux, "Handle Key Event");
+
vlc_mutex_lock( &p_ev->lock );
pci_t *pci = (pci_t *) &p_sys->pci_packet;
int32_t best,dist,d;
int32_t mx,my,dx,dy;
+ msg_Dbg( p_ev->p_demux, "Handle Mouse Event: Mouse clicked x(%d)*y(%d)", (unsigned)valx.i_int, (unsigned)valy.i_int);
+
b_activated = VLC_TRUE;
// get current button
best = 0;
p_sys->i_pts = (p_sys->i_chapter_time + block->GlobalTimecode()) / (mtime_t) 1000;
if( p_sys->i_pts >= p_sys->i_start_pts )
- if ( p_vsegment->UpdateCurrentToChapter( *p_demux ) )
+ {
+ es_out_Control( p_demux->out, ES_OUT_SET_PCR, p_sys->i_pts );
+
+ if ( p_vsegment->UpdateCurrentToChapter( *p_demux ) )
{
i_return = 1;
delete block;
break;
}
+ }
if ( p_vsegment->Edition() && p_vsegment->Edition()->b_ordered && p_vsegment->CurrentChapter() == NULL )
{