Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
4f8b045e
Commit
4f8b045e
authored
Jul 01, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/playlist/playlist.c: fixed recent playlist f\!ckage.
parent
32329d4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
18 deletions
+23
-18
src/playlist/playlist.c
src/playlist/playlist.c
+23
-18
No files found.
src/playlist/playlist.c
View file @
4f8b045e
...
...
@@ -239,8 +239,6 @@ void playlist_Command( playlist_t * p_playlist, playlist_command_t i_command,
{
input_StopThread
(
p_playlist
->
p_input
);
}
val
.
b_bool
=
VLC_TRUE
;
var_Set
(
p_playlist
,
"prevent-skip"
,
val
);
p_playlist
->
i_status
=
PLAYLIST_RUNNING
;
break
;
...
...
@@ -323,6 +321,8 @@ static void RunThread ( playlist_t *p_playlist )
mtime_t
i_vout_destroyed_date
=
0
;
mtime_t
i_sout_destroyed_date
=
0
;
playlist_item_t
*
p_autodelete_item
=
0
;
/* Tell above that we're ready */
vlc_thread_ready
(
p_playlist
);
...
...
@@ -359,23 +359,11 @@ static void RunThread ( playlist_t *p_playlist )
i_sout_destroyed_date
=
0
;
/* Check for autodeletion */
if
(
p_playlist
->
pp_items
[
p_playlist
->
i_index
]
->
b_autodeletion
)
{
playlist_Delete
(
p_playlist
,
p_playlist
->
i_index
);
p_playlist
->
i_status
=
PLAYLIST_RUNNING
;
}
/* Select the next playlist item if necessary */
vlc_mutex_lock
(
&
p_playlist
->
object_lock
);
var_Get
(
p_playlist
,
"prevent-skip"
,
&
val
);
if
(
val
.
b_bool
==
VLC_FALSE
)
if
(
p_autodelete_item
)
{
SkipItem
(
p_playlist
,
1
);
playlist_ItemDelete
(
p_autodelete_item
);
p_autodelete_item
=
0
;
}
/* Reset forced status */
val
.
b_bool
=
VLC_FALSE
;
var_Set
(
p_playlist
,
"prevent-skip"
,
val
);
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
continue
;
}
...
...
@@ -390,7 +378,24 @@ static void RunThread ( playlist_t *p_playlist )
{
input_StopThread
(
p_playlist
->
p_input
);
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
if
(
p_playlist
->
pp_items
[
p_playlist
->
i_index
]
->
b_autodeletion
)
{
/* This ain't pretty but hey it works */
p_autodelete_item
=
p_playlist
->
pp_items
[
p_playlist
->
i_index
];
p_playlist
->
pp_items
[
p_playlist
->
i_index
]
=
playlist_ItemNew
(
p_playlist
,
p_autodelete_item
->
input
.
psz_uri
,
0
);
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
playlist_Delete
(
p_playlist
,
p_playlist
->
i_index
);
p_playlist
->
i_status
=
PLAYLIST_RUNNING
;
}
else
{
SkipItem
(
p_playlist
,
1
);
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
}
continue
;
}
else
if
(
p_playlist
->
p_input
->
i_state
!=
INIT_S
)
...
...
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