Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
24f66977
Commit
24f66977
authored
Apr 24, 2009
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbus: use accessor iso accessing struct directly
parent
a70c8b64
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
modules/control/dbus.c
modules/control/dbus.c
+7
-3
No files found.
modules/control/dbus.c
View file @
24f66977
...
@@ -488,7 +488,9 @@ DBUS_METHOD( GetLength )
...
@@ -488,7 +488,9 @@ DBUS_METHOD( GetLength )
OUT_ARGUMENTS
;
OUT_ARGUMENTS
;
playlist_t
*
p_playlist
=
pl_Hold
(
(
vlc_object_t
*
)
p_this
);
playlist_t
*
p_playlist
=
pl_Hold
(
(
vlc_object_t
*
)
p_this
);
dbus_int32_t
i_elements
=
p_playlist
->
current
.
i_size
;
PL_LOCK
;
dbus_int32_t
i_elements
=
playlist_CurrentSize
(
p_playlist
);
PL_UNLOCK
;
pl_Release
(
(
vlc_object_t
*
)
p_this
);
pl_Release
(
(
vlc_object_t
*
)
p_this
);
ADD_INT32
(
&
i_elements
);
ADD_INT32
(
&
i_elements
);
...
@@ -519,7 +521,7 @@ DBUS_METHOD( DelTrack )
...
@@ -519,7 +521,7 @@ DBUS_METHOD( DelTrack )
p_playlist
=
pl_Hold
(
(
vlc_object_t
*
)
p_this
);
p_playlist
=
pl_Hold
(
(
vlc_object_t
*
)
p_this
);
PL_LOCK
;
PL_LOCK
;
if
(
i_position
<
p
_playlist
->
current
.
i_size
)
if
(
i_position
<
p
laylist_CurrentSize
(
p_playlist
)
)
{
{
playlist_DeleteFromInput
(
p_playlist
,
playlist_DeleteFromInput
(
p_playlist
,
p_playlist
->
current
.
p_elems
[
i_position
]
->
p_input
->
i_id
,
p_playlist
->
current
.
p_elems
[
i_position
]
->
p_input
->
i_id
,
...
@@ -1905,7 +1907,9 @@ DBUS_SIGNAL( TrackListChangeSignal )
...
@@ -1905,7 +1907,9 @@ DBUS_SIGNAL( TrackListChangeSignal )
OUT_ARGUMENTS
;
OUT_ARGUMENTS
;
playlist_t
*
p_playlist
=
pl_Hold
(
(
vlc_object_t
*
)
p_data
);
playlist_t
*
p_playlist
=
pl_Hold
(
(
vlc_object_t
*
)
p_data
);
dbus_int32_t
i_elements
=
p_playlist
->
current
.
i_size
;
PL_LOCK
;
dbus_int32_t
i_elements
=
playlist_CurrentSize
(
p_playlist
);
PL_UNLOCK
;
pl_Release
(
(
vlc_object_t
*
)
p_data
);
pl_Release
(
(
vlc_object_t
*
)
p_data
);
ADD_INT32
(
&
i_elements
);
ADD_INT32
(
&
i_elements
);
...
...
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