Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
a0d1480b
Commit
a0d1480b
authored
Oct 16, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/skins/src/vlcproc.cpp: don't forget to lock the playlist object.
Check p_playlist->i_index is != -1 as well.
parent
8b784013
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
modules/gui/skins/src/vlcproc.cpp
modules/gui/skins/src/vlcproc.cpp
+6
-2
No files found.
modules/gui/skins/src/vlcproc.cpp
View file @
a0d1480b
...
...
@@ -2,7 +2,7 @@
* vlcproc.cpp: VlcProc class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: vlcproc.cpp,v 1.4
5 2003/10/15 12:24:14
gbazin Exp $
* $Id: vlcproc.cpp,v 1.4
6 2003/10/16 16:04:25
gbazin Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -279,6 +279,8 @@ void VlcProc::InterfaceRefresh()
// Refresh
if
(
PlayList
!=
NULL
)
{
vlc_mutex_lock
(
&
PlayList
->
object_lock
);
// Refresh stream control controls ! :)
switch
(
PlayList
->
i_status
)
{
...
...
@@ -314,7 +316,7 @@ void VlcProc::InterfaceRefresh()
EnabledEvent
(
"next"
,
true
);
// Update file name
if
(
PlayList
->
i_index
!=
Sys
->
i_index
)
if
(
PlayList
->
i_index
>=
0
&&
PlayList
->
i_index
!=
Sys
->
i_index
)
{
string
long_name
=
PlayList
->
pp_items
[
PlayList
->
i_index
]
->
psz_name
;
int
pos
=
long_name
.
rfind
(
DIRECTORY_SEPARATOR
,
long_name
.
size
()
);
...
...
@@ -335,6 +337,8 @@ void VlcProc::InterfaceRefresh()
Sys
->
i_size
=
PlayList
->
i_size
;
Sys
->
i_index
=
PlayList
->
i_index
;
}
vlc_mutex_unlock
(
&
PlayList
->
object_lock
);
}
else
{
...
...
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