Commit c3638c4d authored by Gildas Bazin's avatar Gildas Bazin

* modules/gui/*: use MSTRTIME_MAX_SIZE instead of OFFSETTOTIME_MAX_SIZE.

parent 5383df0c
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* VlcWrapper.cpp: BeOS plugin for vlc (derived from MacOS X port) * VlcWrapper.cpp: BeOS plugin for vlc (derived from MacOS X port)
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: VlcWrapper.cpp,v 1.39 2003/11/24 00:39:01 fenrir Exp $ * $Id: VlcWrapper.cpp,v 1.40 2003/12/04 10:25:47 gbazin Exp $
* *
* Authors: Florian G. Pflug <fgp@phlo.org> * Authors: Florian G. Pflug <fgp@phlo.org>
* Jon Lech Johansen <jon-vl@nanocrew.net> * Jon Lech Johansen <jon-vl@nanocrew.net>
...@@ -270,7 +270,7 @@ void VlcWrapper::ToggleSubtitle( int i_subtitle ) ...@@ -270,7 +270,7 @@ void VlcWrapper::ToggleSubtitle( int i_subtitle )
const char * VlcWrapper::GetTimeAsString() const char * VlcWrapper::GetTimeAsString()
{ {
static char psz_time[ OFFSETTOTIME_MAX_SIZE ]; static char psz_time[ MSTRTIME_MAX_SIZE ];
if( !p_input ) if( !p_input )
{ {
......
...@@ -502,7 +502,7 @@ void KInterface::slotSliderChanged( int position ) ...@@ -502,7 +502,7 @@ void KInterface::slotSliderChanged( int position )
{ {
if( p_intf->p_sys->p_input != NULL ) if( p_intf->p_sys->p_input != NULL )
{ {
char psz_time[ OFFSETTOTIME_MAX_SIZE ]; char psz_time[ MSTRTIME_MAX_SIZE ];
vlc_mutex_lock( &p_intf->p_sys->p_input->stream.stream_lock ); vlc_mutex_lock( &p_intf->p_sys->p_input->stream.stream_lock );
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* pda.c : PDA Gtk2 plugin for vlc * pda.c : PDA Gtk2 plugin for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2002 VideoLAN * Copyright (C) 2002 VideoLAN
* $Id: pda.c,v 1.15 2003/12/03 20:47:06 jpsaman Exp $ * $Id: pda.c,v 1.16 2003/12/04 10:25:47 gbazin Exp $
* *
* Authors: Jean-Paul Saman <jpsaman@wxs.nl> * Authors: Jean-Paul Saman <jpsaman@wxs.nl>
* Marc Ariberti <marcari@videolan.org> * Marc Ariberti <marcari@videolan.org>
...@@ -564,7 +564,7 @@ void E_(GtkDisplayDate)( GtkAdjustment *p_adj ) ...@@ -564,7 +564,7 @@ void E_(GtkDisplayDate)( GtkAdjustment *p_adj )
if( p_intf->p_sys->p_input ) if( p_intf->p_sys->p_input )
{ {
#define p_area p_intf->p_sys->p_input->stream.p_selected_area #define p_area p_intf->p_sys->p_input->stream.p_selected_area
char psz_time[ OFFSETTOTIME_MAX_SIZE ]; char psz_time[ MSTRTIME_MAX_SIZE ];
gtk_label_set_text( GTK_LABEL( p_intf->p_sys->p_slider_label ), gtk_label_set_text( GTK_LABEL( p_intf->p_sys->p_slider_label ),
input_OffsetToTime( p_intf->p_sys->p_input, psz_time, input_OffsetToTime( p_intf->p_sys->p_input, psz_time,
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* intf.cpp: Qt interface * intf.cpp: Qt interface
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN * Copyright (C) 1999, 2000 VideoLAN
* $Id: intf.cpp,v 1.4 2003/07/23 01:13:47 gbazin Exp $ * $Id: intf.cpp,v 1.5 2003/12/04 10:25:47 gbazin Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -264,7 +264,7 @@ void IntfWindow::DateDisplay( int i_range ) ...@@ -264,7 +264,7 @@ void IntfWindow::DateDisplay( int i_range )
{ {
if( p_intf->p_sys->p_input ) if( p_intf->p_sys->p_input )
{ {
char psz_time[ OFFSETTOTIME_MAX_SIZE ]; char psz_time[ MSTRTIME_MAX_SIZE ];
vlc_mutex_lock( &p_intf->p_sys->p_input->stream.stream_lock ); vlc_mutex_lock( &p_intf->p_sys->p_input->stream.stream_lock );
p_date->setText( input_OffsetToTime( p_intf->p_sys->p_input, psz_time, p_date->setText( input_OffsetToTime( p_intf->p_sys->p_input, psz_time,
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* interface.cpp : wxWindows plugin for vlc * interface.cpp : wxWindows plugin for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2000-2001, 2003 VideoLAN * Copyright (C) 2000-2001, 2003 VideoLAN
* $Id: interface.cpp,v 1.75 2003/12/03 13:41:49 rocky Exp $ * $Id: interface.cpp,v 1.76 2003/12/04 10:25:47 gbazin Exp $
* *
* Authors: Gildas Bazin <gbazin@netcourrier.com> * Authors: Gildas Bazin <gbazin@netcourrier.com>
* *
...@@ -1167,7 +1167,7 @@ void Interface::OnSliderUpdate( wxScrollEvent& event ) ...@@ -1167,7 +1167,7 @@ void Interface::OnSliderUpdate( wxScrollEvent& event )
{ {
/* Update stream date */ /* Update stream date */
#define p_area p_intf->p_sys->p_input->stream.p_selected_area #define p_area p_intf->p_sys->p_input->stream.p_selected_area
char psz_time[ OFFSETTOTIME_MAX_SIZE ]; char psz_time[ MSTRTIME_MAX_SIZE ];
slider_box->SetLabel( slider_box->SetLabel(
wxU(input_OffsetToTime( p_intf->p_sys->p_input, wxU(input_OffsetToTime( p_intf->p_sys->p_input,
......
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