Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
d8c509a8
Commit
d8c509a8
authored
Mar 14, 2004
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix deadlocks in playlist
parent
87eb9dcd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
6 deletions
+11
-6
modules/demux/demux2.c
modules/demux/demux2.c
+2
-0
src/playlist/item.c
src/playlist/item.c
+1
-1
src/playlist/loadsave.c
src/playlist/loadsave.c
+5
-4
src/playlist/playlist.c
src/playlist/playlist.c
+3
-1
No files found.
modules/demux/demux2.c
View file @
d8c509a8
...
...
@@ -57,6 +57,8 @@ vlc_module_begin();
add_shortcut
(
"dts"
);
add_shortcut
(
"mod"
);
add_shortcut
(
"flac"
);
add_shortcut
(
"m3u"
);
add_shortcut
(
"playlist"
);
vlc_module_end
();
/*****************************************************************************
...
...
src/playlist/item.c
View file @
d8c509a8
...
...
@@ -2,7 +2,7 @@
* item.c : Playlist item functions
*****************************************************************************
* Copyright (C) 1999-2004 VideoLAN
* $Id
: item.c,v 1.15 2004/02/28 17:10:23 gbazin Exp
$
* $Id$
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
...
...
src/playlist/loadsave.c
View file @
d8c509a8
...
...
@@ -2,7 +2,7 @@
* loadsave.c : Playlist loading / saving functions
*****************************************************************************
* Copyright (C) 1999-2004 VideoLAN
* $Id
: loadsave.c,v 1.11 2004/03/03 20:39:53 gbazin Exp
$
* $Id$
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
...
...
@@ -60,15 +60,16 @@ int playlist_Import( playlist_t * p_playlist, const char *psz_filename )
psz_uri
=
(
char
*
)
malloc
(
sizeof
(
char
)
*
strlen
(
psz_filename
)
+
17
);
sprintf
(
psz_uri
,
"file/playlist://%s"
,
psz_filename
);
vlc_mutex_lock
(
&
p_playlist
->
object_lock
);
i_id
=
playlist_Add
(
p_playlist
,
psz_uri
,
psz_uri
,
PLAYLIST_INSERT
|
PLAYLIST_GO
,
PLAYLIST_END
);
PLAYLIST_INSERT
,
PLAYLIST_END
);
vlc_mutex_lock
(
&
p_playlist
->
object_lock
);
p_item
=
playlist_ItemGetById
(
p_playlist
,
i_id
);
p_item
->
b_autodeletion
=
VLC_TRUE
;
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
playlist_Play
(
p_playlist
);
return
VLC_SUCCESS
;
}
...
...
src/playlist/playlist.c
View file @
d8c509a8
...
...
@@ -580,11 +580,13 @@ static void PlayItem( playlist_t *p_playlist )
p_item
=
p_playlist
->
pp_items
[
p_playlist
->
i_index
];
p_item
->
i_nb_played
++
;
p_playlist
->
p_input
=
input_CreateThread
(
p_playlist
,
p_item
->
psz_uri
,
p_item
->
ppsz_options
,
p_item
->
i_options
);
val
.
i_int
=
p_playlist
->
i_index
;
/* unlock the playlist to set the var...mmm */
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
var_Set
(
p_playlist
,
"playlist-current"
,
val
);
vlc_mutex_lock
(
&
p_playlist
->
object_lock
);
}
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