* wxwindows.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
- * $Id: wxwindows.cpp,v 1.29 2003/08/08 16:50:27 gbazin Exp $
+ * $Id: wxwindows.cpp,v 1.30 2003/08/11 17:31:15 gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
#else
wxEntry( i_args, p_args );
#endif
-
- if( p_intf->pf_show_dialog )
- {
- /* We need to manually clean up the dialogs class */
- if( p_intf->p_sys->p_wxwindow ) delete p_intf->p_sys->p_wxwindow;
- }
}
/* following functions are local */
* mpegvideo.c
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
- * $Id: mpegvideo.c,v 1.16 2003/08/10 22:13:05 fenrir Exp $
+ * $Id: mpegvideo.c,v 1.17 2003/08/11 17:31:15 gbazin Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Eric Petit <titer@videolan.org>
{
/* Trivial case (DTS == PTS) */
p_pack->i_interpolated_dts += i_duration;
- p_sout_buffer->i_length = i_duration;
}
else
{
p_pack->i_interpolated_dts += p_pack->i_old_duration;
- p_sout_buffer->i_length = p_pack->i_old_duration;
p_pack->i_old_duration = i_duration;
}
+ p_sout_buffer->i_length = p_pack->p_pack->i_interpolated_dts -
+ p_sout_buffer->i_dts;
+
p_sout_buffer->i_bitrate = (int)( 8 * i_pos * p_pack->d_frame_rate );
+
#if 0
msg_Dbg( p_pack->p_fifo, "------------> dts=%lld pts=%lld duration=%lld",
p_sout_buffer->i_dts, p_sout_buffer->i_pts,