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
919efd8e
Commit
919efd8e
authored
Jun 20, 2005
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge [11470],[11471],[11474] and [11475] - Closes: #205
parent
be421631
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
2 deletions
+18
-2
modules/gui/macosx/playlist.m
modules/gui/macosx/playlist.m
+3
-0
src/playlist/item-ext.c
src/playlist/item-ext.c
+10
-0
src/playlist/playlist.c
src/playlist/playlist.c
+3
-2
src/playlist/view.c
src/playlist/view.c
+2
-0
No files found.
modules/gui/macosx/playlist.m
View file @
919efd8e
...
...
@@ -367,6 +367,7 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
if
(
p_temp_item
)
{
vlc_mutex_lock
(
&
p_playlist
->
object_lock
);
while
(
p_temp_item
->
i_parents
>
0
)
{
int
i
;
...
...
@@ -377,6 +378,7 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
if
(
p_temp_item
->
pp_parents
[
i
]
->
p_parent
==
p_node
)
{
vlc_object_release
(
p_playlist
);
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
return
YES
;
}
else
...
...
@@ -387,6 +389,7 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
}
}
}
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
}
vlc_object_release
(
p_playlist
);
...
...
src/playlist/item-ext.c
View file @
919efd8e
...
...
@@ -622,6 +622,7 @@ int playlist_Replace( playlist_t *p_playlist, playlist_item_t *p_olditem,
int
playlist_Delete
(
playlist_t
*
p_playlist
,
int
i_id
)
{
int
i
,
i_top
,
i_bottom
;
int
i_pos
;
vlc_bool_t
b_flag
=
VLC_FALSE
;
playlist_item_t
*
p_item
=
playlist_ItemGetById
(
p_playlist
,
i_id
);
...
...
@@ -663,10 +664,19 @@ int playlist_Delete( playlist_t * p_playlist, int i_id )
/* Hack we don't call playlist_Control for lock reasons */
p_playlist
->
status
.
i_status
=
PLAYLIST_STOPPED
;
p_playlist
->
request
.
b_request
=
VLC_TRUE
;
p_playlist
->
request
.
p_item
=
NULL
;
msg_Info
(
p_playlist
,
"stopping playback"
);
b_flag
=
VLC_TRUE
;
}
/* Get position and update index if needed */
i_pos
=
playlist_GetPositionById
(
p_playlist
,
i_id
);
if
(
i_pos
>=
0
&&
i_pos
<=
p_playlist
->
i_index
)
{
p_playlist
->
i_index
--
;
}
msg_Dbg
(
p_playlist
,
"deleting playlist item `%s'"
,
p_item
->
input
.
psz_name
);
...
...
src/playlist/playlist.c
View file @
919efd8e
...
...
@@ -332,7 +332,8 @@ int playlist_vaControl( playlist_t * p_playlist, int i_query, va_list args )
i_view
=
(
int
)
va_arg
(
args
,
int
);
p_node
=
(
playlist_item_t
*
)
va_arg
(
args
,
playlist_item_t
*
);
p_item
=
(
playlist_item_t
*
)
va_arg
(
args
,
playlist_item_t
*
);
if
(
p_node
==
NULL
||
p_item
==
NULL
||
p_item
->
input
.
psz_uri
==
NULL
)
if
(
p_node
==
NULL
||
(
p_item
!=
NULL
&&
p_item
->
input
.
psz_uri
==
NULL
))
{
p_playlist
->
status
.
i_status
=
PLAYLIST_STOPPED
;
p_playlist
->
request
.
b_request
=
VLC_TRUE
;
...
...
@@ -866,7 +867,7 @@ static playlist_item_t * NextItem( playlist_t *p_playlist )
i_skip
=
p_playlist
->
request
.
i_skip
;
i_goto
=
p_playlist
->
request
.
i_goto
;
if
(
p_playlist
->
i_index
==
-
1
)
p_playlist
->
i_index
=
0
;
if
(
p_playlist
->
i_index
<
0
)
p_playlist
->
i_index
=
0
;
p_new
=
p_playlist
->
pp_items
[
p_playlist
->
i_index
];
if
(
i_goto
>=
0
&&
i_goto
<
p_playlist
->
i_size
)
...
...
src/playlist/view.c
View file @
919efd8e
...
...
@@ -619,6 +619,8 @@ playlist_item_t *playlist_FindNextFromParent( playlist_t *p_playlist,
{
msg_Dbg
(
p_playlist
,
"finding something to play within %s -root %s"
,
p_node
->
input
.
psz_name
,
p_root
->
input
.
psz_name
);
msg_Dbg
(
p_playlist
,
"%s has %i children"
,
p_node
->
input
.
psz_name
,
p_node
->
i_children
);
}
#endif
...
...
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