Commit ae9e72a7 authored by Gildas Bazin's avatar Gildas Bazin

* src/playlist/playlist.c: fixed locking problem.
* modules/gui/skins/src/skin_main.cpp: fixed division by 0.
parent 0ee11d7b
......@@ -2,7 +2,7 @@
* skin-main.cpp: skins plugin for VLC
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: skin_main.cpp,v 1.51 2003/10/17 18:17:28 ipkiss Exp $
* $Id: skin_main.cpp,v 1.52 2003/10/19 12:20:00 gbazin Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
......@@ -364,14 +364,12 @@ int SkinManage( intf_thread_t *p_intf )
// Refresh slider
// if( p_input->stream.b_seekable && p_intf->p_sys->b_playing )
if( p_input->stream.b_seekable )
{
#define p_area p_input->stream.p_selected_area
if( p_input->stream.b_seekable && p_area->i_size )
{
// Set value of sliders
long Value = SLIDER_RANGE *
p_input->stream.p_selected_area->i_tell /
p_input->stream.p_selected_area->i_size;
long Value = SLIDER_RANGE * p_area->i_tell / p_area->i_size;
// Update sliders
OSAPI_PostMessage( NULL, CTRL_SET_SLIDER, (unsigned int)
......
......@@ -2,7 +2,7 @@
* playlist.c : Playlist management functions
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: playlist.c,v 1.58 2003/10/09 18:05:32 massiot Exp $
* $Id: playlist.c,v 1.59 2003/10/19 12:20:00 gbazin Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
......@@ -698,6 +698,9 @@ int playlist_Move( playlist_t * p_playlist, int i_pos, int i_newpos)
vlc_mutex_unlock( &p_playlist->object_lock );
val.b_bool = VLC_TRUE;
var_Set( p_playlist, "intf-change", val );
return;
}
/* Following functions are local */
......@@ -994,8 +997,6 @@ static void SkipItem( playlist_t *p_playlist, int i_arg )
{
SkipItem( p_playlist , 1 );
}
val.b_bool = VLC_TRUE;
var_Set( p_playlist, "intf-change", val );
}
/*****************************************************************************
......
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