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
a518149f
Commit
a518149f
authored
Jul 21, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use pl_Locked and pl_Unlocked.
parent
cd4c4f1d
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
19 additions
and
19 deletions
+19
-19
modules/codec/cmml/intf.c
modules/codec/cmml/intf.c
+1
-1
modules/control/dbus.c
modules/control/dbus.c
+1
-1
modules/control/rc.c
modules/control/rc.c
+3
-3
modules/gui/macosx/applescript.m
modules/gui/macosx/applescript.m
+1
-1
modules/gui/macosx/wizard.m
modules/gui/macosx/wizard.m
+1
-1
modules/gui/ncurses.c
modules/gui/ncurses.c
+1
-1
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
+1
-1
modules/gui/qt4/dialogs/open.cpp
modules/gui/qt4/dialogs/open.cpp
+1
-1
modules/gui/qt4/dialogs_provider.cpp
modules/gui/qt4/dialogs_provider.cpp
+1
-1
modules/gui/skins2/vars/playtree.cpp
modules/gui/skins2/vars/playtree.cpp
+1
-1
modules/gui/wxwidgets/dialogs/open.cpp
modules/gui/wxwidgets/dialogs/open.cpp
+1
-1
modules/gui/wxwidgets/dialogs/wizard.cpp
modules/gui/wxwidgets/dialogs/wizard.cpp
+1
-1
modules/misc/lua/libs/playlist.c
modules/misc/lua/libs/playlist.c
+1
-1
modules/services_discovery/sap.c
modules/services_discovery/sap.c
+2
-2
src/playlist/loadsave.c
src/playlist/loadsave.c
+1
-1
src/playlist/services_discovery.c
src/playlist/services_discovery.c
+1
-1
No files found.
modules/codec/cmml/intf.c
View file @
a518149f
...
...
@@ -510,7 +510,7 @@ static void FollowAnchor ( intf_thread_t *p_intf )
msg_Dbg
(
p_intf
,
"calling browser_Open with
\"
%s
\"
"
,
psz_url
);
#endif
(
void
)
browser_Open
(
psz_url
);
playlist_Control
(
p_playlist
,
PLAYLIST_PAUSE
,
false
,
0
);
playlist_Control
(
p_playlist
,
PLAYLIST_PAUSE
,
pl_Unlocked
,
0
);
}
free
(
psz_uri_to_load
);
...
...
modules/control/dbus.c
View file @
a518149f
...
...
@@ -507,7 +507,7 @@ DBUS_METHOD( DelTrack )
{
playlist_DeleteFromInput
(
p_playlist
,
p_playlist
->
current
.
p_elems
[
i_position
]
->
p_input
->
i_id
,
true
);
pl_Locked
);
}
PL_UNLOCK
;
...
...
modules/control/rc.c
View file @
a518149f
...
...
@@ -1430,7 +1430,7 @@ static int Playlist( vlc_object_t *p_this, char const *psz_cmd,
else
if
(
!
strcmp
(
psz_cmd
,
"clear"
)
)
{
playlist_Stop
(
p_playlist
);
playlist_Clear
(
p_playlist
,
false
);
playlist_Clear
(
p_playlist
,
pl_Unlocked
);
}
else
if
(
!
strcmp
(
psz_cmd
,
"add"
)
&&
newval
.
psz_string
&&
*
newval
.
psz_string
)
...
...
@@ -1442,7 +1442,7 @@ static int Playlist( vlc_object_t *p_this, char const *psz_cmd,
msg_rc
(
"Trying to add %s to playlist."
,
newval
.
psz_string
);
int
i_ret
=
playlist_AddInput
(
p_playlist
,
p_item
,
PLAYLIST_GO
|
PLAYLIST_APPEND
,
PLAYLIST_END
,
true
,
false
);
pl_Unlocked
);
vlc_gc_decref
(
p_item
);
if
(
i_ret
!=
VLC_SUCCESS
)
{
...
...
@@ -1460,7 +1460,7 @@ static int Playlist( vlc_object_t *p_this, char const *psz_cmd,
msg_rc
(
"trying to enqueue %s to playlist"
,
newval
.
psz_string
);
if
(
playlist_AddInput
(
p_playlist
,
p_item
,
PLAYLIST_APPEND
,
PLAYLIST_END
,
true
,
false
)
!=
VLC_SUCCESS
)
pl_Unlocked
)
!=
VLC_SUCCESS
)
{
return
VLC_EGENERIC
;
}
...
...
modules/gui/macosx/applescript.m
View file @
a518149f
...
...
@@ -58,7 +58,7 @@
displayNameAtPath:
o_urlString
]
UTF8String
]
);
/* FIXME: playlist_AddInput() can fail */
playlist_AddInput
(
p_playlist
,
p_input
,
PLAYLIST_INSERT
,
PLAYLIST_END
,
true
,
false
);
PLAYLIST_END
,
true
,
pl_Unlocked
);
vlc_gc_decref
(
p_input
);
...
...
modules/gui/macosx/wizard.m
View file @
a518149f
...
...
@@ -1294,7 +1294,7 @@ static VLCWizard *_o_sharedInstance = nil;
/* FIXME: playlist_AddInput() can fail */
playlist_AddInput
(
p_playlist
,
p_input
,
PLAYLIST_STOP
,
PLAYLIST_END
,
true
,
false
);
PLAYLIST_END
,
true
,
pl_Unlocked
);
if
(
x
==
0
)
{
...
...
modules/gui/ncurses.c
View file @
a518149f
...
...
@@ -679,7 +679,7 @@ static int HandleKey( intf_thread_t *p_intf, int i_key )
if
(
p_item
->
i_children
==
-
1
)
{
playlist_DeleteFromInput
(
p_playlist
,
p_item
->
p_input
->
i_id
,
true
);
p_item
->
p_input
->
i_id
,
pl_Locked
);
}
else
{
...
...
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
a518149f
...
...
@@ -705,7 +705,7 @@ void PLModel::doDeleteItem( PLItem *item, QModelIndexList *fullList )
PL_UNLOCK
;
return
;
}
if
(
p_item
->
i_children
==
-
1
)
playlist_DeleteFromInput
(
p_playlist
,
item
->
i_input_id
,
true
);
playlist_DeleteFromInput
(
p_playlist
,
item
->
i_input_id
,
pl_Locked
);
else
playlist_NodeDelete
(
p_playlist
,
p_item
,
true
,
false
);
/* And finally, remove it from the tree */
...
...
modules/gui/qt4/dialogs/open.cpp
View file @
a518149f
...
...
@@ -313,7 +313,7 @@ void OpenDialog::finish( bool b_enqueue = false )
/* FIXME: playlist_AddInput() can fail */
playlist_AddInput
(
THEPL
,
p_input
,
PLAYLIST_APPEND
|
(
b_start
?
PLAYLIST_GO
:
PLAYLIST_PREPARSE
),
PLAYLIST_END
,
true
,
false
);
PLAYLIST_END
,
true
,
pl_Unlocked
);
vlc_gc_decref
(
p_input
);
}
}
...
...
modules/gui/qt4/dialogs_provider.cpp
View file @
a518149f
...
...
@@ -355,7 +355,7 @@ static void openDirectory( intf_thread_t *p_intf, bool pl, bool go )
/* FIXME: playlist_AddInput() can fail */
playlist_AddInput
(
THEPL
,
p_input
,
go
?
(
PLAYLIST_APPEND
|
PLAYLIST_GO
)
:
PLAYLIST_APPEND
,
PLAYLIST_END
,
pl
,
false
);
PLAYLIST_END
,
pl
,
pl_Unlocked
);
input_Read
(
THEPL
,
p_input
,
false
);
vlc_gc_decref
(
p_input
);
}
...
...
modules/gui/skins2/vars/playtree.cpp
View file @
a518149f
...
...
@@ -74,7 +74,7 @@ void Playtree::delSelected()
if
(
p_item
->
i_children
==
-
1
)
{
playlist_DeleteFromInput
(
getIntf
()
->
p_sys
->
p_playlist
,
p_item
->
p_input
->
i_id
,
true
);
p_item
->
p_input
->
i_id
,
pl_Locked
);
it2
=
getNextVisibleItem
(
it
)
;
it
->
parent
()
->
removeChild
(
it
);
it
=
it2
;
...
...
modules/gui/wxwidgets/dialogs/open.cpp
View file @
a518149f
...
...
@@ -1206,7 +1206,7 @@ void OpenDialog::OnOk( wxCommandEvent& WXUNUSED(event) )
/* FIXME: playlist_AddInput() can fail */
playlist_AddInput
(
p_playlist
,
p_input
,
PLAYLIST_APPEND
|
(
b_start
?
PLAYLIST_GO
:
PLAYLIST_PREPARSE
),
PLAYLIST_END
,
true
,
false
);
PLAYLIST_END
,
true
,
pl_Unlocked
);
vlc_gc_decref
(
p_input
);
}
pl_Release
(
p_playlist
);
...
...
modules/gui/wxwidgets/dialogs/wizard.cpp
View file @
a518149f
...
...
@@ -1631,7 +1631,7 @@ void WizardDialog::Run()
/* FIXME: playlist_AddInput() can fail */
playlist_AddInput
(
p_playlist
,
p_input
,
PLAYLIST_GO
,
PLAYLIST_END
,
true
,
false
);
PLAYLIST_GO
,
PLAYLIST_END
,
true
,
pl_Unlocked
);
vlc_gc_decref
(
p_input
);
pl_Release
(
p_playlist
);
}
...
...
modules/misc/lua/libs/playlist.c
View file @
a518149f
...
...
@@ -107,7 +107,7 @@ static int vlclua_playlist_clear( lua_State * L )
{
playlist_t
*
p_playlist
=
vlclua_get_playlist_internal
(
L
);
playlist_Stop
(
p_playlist
);
/* Isn't this already implied by Clear? */
playlist_Clear
(
p_playlist
,
false
);
playlist_Clear
(
p_playlist
,
pl_Unlocked
);
vlc_object_release
(
p_playlist
);
return
0
;
}
...
...
modules/services_discovery/sap.c
View file @
a518149f
...
...
@@ -684,7 +684,7 @@ static int Demux( demux_t *p_demux )
if
(
p_playlist
->
status
.
p_item
&&
p_playlist
->
status
.
p_item
->
p_input
==
p_parent_input
)
{
playlist_Control
(
p_playlist
,
PLAYLIST_VIEWPLAY
,
true
,
playlist_Control
(
p_playlist
,
PLAYLIST_VIEWPLAY
,
pl_Locked
,
p_playlist
->
status
.
p_node
,
p_playlist
->
status
.
p_item
);
}
...
...
@@ -1540,7 +1540,7 @@ static int RemoveAnnounce( services_discovery_t *p_sd,
if
(
p_announce
->
i_input_id
>
-
1
)
{
playlist_DeleteFromInput
(
pl_Yield
(
p_sd
),
p_announce
->
i_input_id
,
false
);
p_announce
->
i_input_id
,
pl_Unlocked
);
pl_Release
(
p_sd
);
}
...
...
src/playlist/loadsave.c
View file @
a518149f
...
...
@@ -100,7 +100,7 @@ static void input_item_subitem_added( const vlc_event_t * p_event,
/* playlist_AddInput() can fail, but we have no way to report that ..
* Any way when it has failed, either the playlist is dying, either OOM */
playlist_AddInput
(
p_playlist
,
p_item
,
PLAYLIST_APPEND
,
PLAYLIST_END
,
false
,
false
);
false
,
pl_Unlocked
);
}
int
playlist_MLLoad
(
playlist_t
*
p_playlist
)
...
...
src/playlist/services_discovery.c
View file @
a518149f
...
...
@@ -269,7 +269,7 @@ static void playlist_sd_item_removed( const vlc_event_t * p_event, void * user_d
/* Delete the non-node item normally */
playlist_DeleteFromInputInParent
(
p_parent
->
p_playlist
,
p_input
->
i_id
,
p_parent
,
true
);
p_parent
,
pl_Locked
);
vlc_object_unlock
(
p_parent
->
p_playlist
);
}
...
...
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