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
6688fd83
Commit
6688fd83
authored
Jan 14, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbus controler: cosmetics (split the meta: the ones requiered by the
specifications and the ones added by vlc).
parent
9c435924
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
26 deletions
+29
-26
modules/control/dbus.c
modules/control/dbus.c
+29
-26
No files found.
modules/control/dbus.c
View file @
6688fd83
...
...
@@ -1169,44 +1169,47 @@ static int GetInputMeta( input_item_t* p_input,
const
char
*
ppsz_meta_items
[]
=
{
"title"
,
"artist"
,
"genre"
,
"copyright"
,
"album"
,
"tracknumber"
,
"description"
,
"rating"
,
"date"
,
"setting"
,
"url"
,
"language"
,
"nowplaying"
,
"publisher"
,
"encodedby"
,
"arturl"
,
"trackid"
,
"status"
,
"location"
,
"length"
,
"video-codec"
,
"audio-codec"
,
"video-bitrate"
,
"audio-bitrate"
,
"audio-samplerate"
/* Official MPRIS metas */
"location"
,
"title"
,
"artist"
,
"album"
,
"tracknumber"
,
"genre"
,
"rating"
,
"date"
,
"arturl"
,
"audio-bitrate"
,
"audio-samplerate"
,
"video-bitrate"
,
/* VLC specifics metas */
"audio-codec"
,
"copyright"
,
"description"
,
"encodedby"
,
"language"
,
"length"
,
"nowplaying"
,
"publisher"
,
"setting"
,
"status"
,
"trackid"
,
"url"
,
"video-codec"
};
dbus_message_iter_open_container
(
args
,
DBUS_TYPE_ARRAY
,
"{sv}"
,
&
dict
);
ADD_VLC_META_STRING
(
0
,
Title
);
ADD_VLC_META_STRING
(
1
,
Artist
);
ADD_VLC_META_STRING
(
2
,
Genre
);
ADD_VLC_META_STRING
(
3
,
Copyright
);
ADD_VLC_META_STRING
(
4
,
Album
);
ADD_VLC_META_STRING
(
5
,
TrackNum
);
ADD_VLC_META_STRING
(
6
,
Description
);
ADD_VLC_META_STRING
(
7
,
Rating
);
ADD_VLC_META_STRING
(
8
,
Date
);
ADD_VLC_META_STRING
(
9
,
Setting
);
ADD_VLC_META_STRING
(
10
,
URL
);
ADD_VLC_META_STRING
(
11
,
Language
);
ADD_VLC_META_STRING
(
12
,
NowPlaying
);
ADD_VLC_META_STRING
(
13
,
Publisher
);
ADD_VLC_META_STRING
(
14
,
EncodedBy
);
ADD_VLC_META_STRING
(
15
,
ArtURL
);
ADD_VLC_META_STRING
(
16
,
TrackID
);
ADD_VLC_META_STRING
(
0
,
URI
);
ADD_VLC_META_STRING
(
1
,
Title
);
ADD_VLC_META_STRING
(
2
,
Artist
);
ADD_VLC_META_STRING
(
3
,
Album
);
ADD_VLC_META_STRING
(
4
,
TrackNum
);
ADD_VLC_META_STRING
(
5
,
Genre
);
ADD_VLC_META_STRING
(
6
,
Rating
);
ADD_VLC_META_STRING
(
7
,
Date
);
ADD_VLC_META_STRING
(
8
,
ArtURL
);
ADD_VLC_META_STRING
(
13
,
Copyright
);
ADD_VLC_META_STRING
(
14
,
Description
);
ADD_VLC_META_STRING
(
15
,
EncodedBy
);
ADD_VLC_META_STRING
(
16
,
Language
);
ADD_META
(
17
,
DBUS_TYPE_INT64
,
i_length
);
ADD_VLC_META_STRING
(
18
,
NowPlaying
);
ADD_VLC_META_STRING
(
19
,
Publisher
);
ADD_VLC_META_STRING
(
20
,
Setting
);
ADD_VLC_META_STRING
(
22
,
TrackID
);
ADD_VLC_META_STRING
(
23
,
URL
);
vlc_mutex_lock
(
&
p_input
->
lock
);
if
(
p_input
->
p_meta
)
{
int
i_status
=
vlc_meta_GetStatus
(
p_input
->
p_meta
);
ADD_META
(
17
,
DBUS_TYPE_INT32
,
i_status
);
ADD_META
(
21
,
DBUS_TYPE_INT32
,
i_status
);
}
vlc_mutex_unlock
(
&
p_input
->
lock
);
ADD_VLC_META_STRING
(
18
,
URI
);
ADD_META
(
19
,
DBUS_TYPE_INT64
,
i_length
);
dbus_message_iter_close_container
(
args
,
&
dict
);
return
VLC_SUCCESS
;
}
...
...
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