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
60f0938f
Commit
60f0938f
authored
Jan 14, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbus control: AFAIK we must lock here.
parent
57a63ce7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
modules/control/dbus.c
modules/control/dbus.c
+7
-2
No files found.
modules/control/dbus.c
View file @
60f0938f
...
@@ -419,8 +419,11 @@ DBUS_METHOD( GetCurrentTrack )
...
@@ -419,8 +419,11 @@ DBUS_METHOD( GetCurrentTrack )
REPLY_INIT
;
REPLY_INIT
;
OUT_ARGUMENTS
;
OUT_ARGUMENTS
;
/* XXX: how about locking?! */
playlist_t
*
p_playlist
=
PL
;
PL_LOCK
;
dbus_int32_t
i_position
=
PL
->
i_current_index
;
dbus_int32_t
i_position
=
PL
->
i_current_index
;
PL_UNLOCK
;
ADD_INT32
(
&
i_position
);
ADD_INT32
(
&
i_position
);
REPLY_SEND
;
REPLY_SEND
;
...
@@ -462,9 +465,11 @@ DBUS_METHOD( GetLength )
...
@@ -462,9 +465,11 @@ DBUS_METHOD( GetLength )
{
{
REPLY_INIT
;
REPLY_INIT
;
OUT_ARGUMENTS
;
OUT_ARGUMENTS
;
playlist_t
*
p_playlist
=
PL
;
/* XXX: how about locking */
PL_LOCK
;
dbus_int32_t
i_elements
=
PL
->
current
.
i_size
;
dbus_int32_t
i_elements
=
PL
->
current
.
i_size
;
PL_UNLOCK
;
ADD_INT32
(
&
i_elements
);
ADD_INT32
(
&
i_elements
);
REPLY_SEND
;
REPLY_SEND
;
...
...
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