Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
1babb275
Commit
1babb275
authored
Feb 26, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/wxwindows/playlist.cpp: removed useless lock.
parent
c05cb268
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
14 deletions
+2
-14
modules/gui/wxwindows/playlist.cpp
modules/gui/wxwindows/playlist.cpp
+1
-12
modules/gui/wxwindows/wxwindows.h
modules/gui/wxwindows/wxwindows.h
+1
-2
No files found.
modules/gui/wxwindows/playlist.cpp
View file @
1babb275
...
...
@@ -2,7 +2,7 @@
* playlist.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2004 VideoLAN
* $Id: playlist.cpp,v 1.4
4 2004/02/26 00:23:04
gbazin Exp $
* $Id: playlist.cpp,v 1.4
5 2004/02/26 08:24:29
gbazin Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
*
...
...
@@ -179,7 +179,6 @@ Playlist::Playlist( intf_thread_t *_p_intf, wxWindow *p_parent ):
i_update_counter
=
0
;
i_sort_mode
=
MODE_NONE
;
b_need_update
=
VLC_FALSE
;
vlc_mutex_init
(
p_intf
,
&
lock
);
SetIcon
(
*
p_intf
->
p_sys
->
p_icon
);
i_title_sorted
=
0
;
...
...
@@ -519,22 +518,14 @@ void Playlist::ShowPlaylist( bool show )
void
Playlist
::
UpdatePlaylist
()
{
vlc_bool_t
b_need_update
=
VLC_FALSE
;
i_update_counter
++
;
/* If the playlist isn't show there's no need to update it */
if
(
!
IsShown
()
)
return
;
vlc_mutex_lock
(
&
lock
);
if
(
this
->
b_need_update
)
{
b_need_update
=
VLC_TRUE
;
this
->
b_need_update
=
VLC_FALSE
;
}
vlc_mutex_unlock
(
&
lock
);
if
(
b_need_update
)
{
Rebuild
();
}
...
...
@@ -1189,9 +1180,7 @@ int PlaylistChanged( vlc_object_t *p_this, const char *psz_variable,
vlc_value_t
old_val
,
vlc_value_t
new_val
,
void
*
param
)
{
Playlist
*
p_playlist_dialog
=
(
Playlist
*
)
param
;
vlc_mutex_lock
(
&
p_playlist_dialog
->
lock
);
p_playlist_dialog
->
b_need_update
=
VLC_TRUE
;
vlc_mutex_unlock
(
&
p_playlist_dialog
->
lock
);
return
VLC_SUCCESS
;
}
...
...
modules/gui/wxwindows/wxwindows.h
View file @
1babb275
...
...
@@ -2,7 +2,7 @@
* wxwindows.h: private wxWindows interface description
*****************************************************************************
* Copyright (C) 1999-2004 VideoLAN
* $Id: wxwindows.h,v 1.9
3 2004/02/25 18:42:38
gbazin Exp $
* $Id: wxwindows.h,v 1.9
4 2004/02/26 08:24:29
gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -762,7 +762,6 @@ public:
void
UpdateItem
(
int
);
bool
b_need_update
;
vlc_mutex_t
lock
;
private:
void
DeleteItem
(
int
item
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment