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
50459be7
Commit
50459be7
authored
Nov 26, 2006
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix dbus compilation
parent
ea82a404
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
modules/control/dbus.c
modules/control/dbus.c
+8
-7
No files found.
modules/control/dbus.c
View file @
50459be7
...
...
@@ -22,7 +22,7 @@
*****************************************************************************/
/*
* D-Bus Specification:
* D-Bus Specification:
* http://dbus.freedesktop.org/doc/dbus-specification.html
* D-Bus low-level C API (libdbus)
* http://dbus.freedesktop.org/doc/dbus/api/html/index.html
...
...
@@ -56,6 +56,7 @@
#include <vlc_interface.h>
#include <vlc_meta.h>
#include <vlc_input.h>
#include <vlc_playlist.h>
/*****************************************************************************
* Local prototypes.
...
...
@@ -235,7 +236,7 @@ DBUS_METHOD( GetPlayingItem )
char
*
p_psz_no_input
=
&
psz_no_input
;
playlist_t
*
p_playlist
=
pl_Yield
(
((
vlc_object_t
*
)
p_this
)
);
input_thread_t
*
p_input
=
p_playlist
->
p_input
;
ADD_STRING
(
(
p_input
)
?
&
p_input
->
input
.
p_item
->
psz_name
:
ADD_STRING
(
(
p_input
)
?
&
input_GetItem
(
p_input
)
->
psz_name
:
&
p_psz_no_input
);
pl_Release
(
((
vlc_object_t
*
)
p_this
)
);
REPLY_SEND
;
...
...
@@ -262,7 +263,7 @@ DBUS_METHOD( GetPlayStatus )
psz_play
=
strdup
(
"playing"
);
else
psz_play
=
strdup
(
"unknown"
);
}
pl_Release
(
p_playlist
);
ADD_STRING
(
&
psz_play
);
...
...
@@ -397,9 +398,9 @@ static int Open( vlc_object_t *p_this )
return
VLC_ENOMEM
;
dbus_threads_init_default
();
dbus_error_init
(
&
error
);
/* connect to the session bus */
p_conn
=
dbus_bus_get
(
DBUS_BUS_SESSION
,
&
error
);
if
(
!
p_conn
)
...
...
@@ -453,7 +454,7 @@ static void Close ( vlc_object_t *p_this )
}
/*****************************************************************************
* Run: main loop
* Run: main loop
*****************************************************************************/
static
void
Run
(
intf_thread_t
*
p_intf
)
...
...
@@ -475,7 +476,7 @@ DBUS_SIGNAL( ItemChangeSignal )
OUT_ARGUMENTS
;
input_thread_t
*
p_input
=
(
input_thread_t
*
)
p_data
;
ADD_STRING
(
&
p_input
->
input
.
p_item
->
psz_name
);
ADD_STRING
(
&
input_GetItem
(
p_input
)
->
psz_name
);
SIGNAL_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