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
a70c8b64
Commit
a70c8b64
authored
Apr 23, 2009
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbus: Reformat output of Player.GetMetadata() TrackList.GetMetadata()
parent
9e4ce232
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
12 deletions
+17
-12
modules/control/dbus.c
modules/control/dbus.c
+17
-12
No files found.
modules/control/dbus.c
View file @
a70c8b64
...
@@ -2206,21 +2206,26 @@ static int GetInputMeta( input_item_t* p_input,
...
@@ -2206,21 +2206,26 @@ static int GetInputMeta( input_item_t* p_input,
const
char
*
psz_name
=
p_input
->
pp_categories
[
i
]
->
pp_infos
[
j
]
->
psz_name
;
const
char
*
psz_name
=
p_input
->
pp_categories
[
i
]
->
pp_infos
[
j
]
->
psz_name
;
const
char
*
psz_value
=
p_input
->
pp_categories
[
i
]
->
pp_infos
[
j
]
->
psz_value
;
const
char
*
psz_value
=
p_input
->
pp_categories
[
i
]
->
pp_infos
[
j
]
->
psz_value
;
char
*
psz_variant
=
NULL
;
char
*
psz_variant
=
NULL
;
char
*
psz_entry
=
NULL
;
dbus_message_iter_open_container
(
&
dict
,
DBUS_TYPE_DICT_ENTRY
,
if
(
asprintf
(
&
psz_entry
,
"%s %s"
,
psz_cat
,
psz_name
)
!=
-
1
)
NULL
,
&
dict_entry
);
dbus_message_iter_append_basic
(
&
dict_entry
,
DBUS_TYPE_STRING
,
&
psz_cat
);
if
(
asprintf
(
&
psz_variant
,
"%s : %s"
,
psz_name
,
psz_value
)
!=
-
1
)
{
{
dbus_message_iter_open_container
(
&
dict_entry
,
DBUS_TYPE_VARIANT
,
dbus_message_iter_open_container
(
&
dict
,
DBUS_TYPE_DICT_ENTRY
,
DBUS_TYPE_STRING_AS_STRING
,
&
variant
);
NULL
,
&
dict_entry
);
dbus_message_iter_append_basic
(
&
variant
,
dbus_message_iter_append_basic
(
&
dict_entry
,
DBUS_TYPE_STRING
,
DBUS_TYPE_STRING
,
&
psz_variant
);
&
psz_entry
);
dbus_message_iter_close_container
(
&
dict_entry
,
&
variant
);
free
(
psz_variant
);
if
(
asprintf
(
&
psz_variant
,
"%s"
,
psz_value
)
!=
-
1
)
{
dbus_message_iter_open_container
(
&
dict_entry
,
DBUS_TYPE_VARIANT
,
DBUS_TYPE_STRING_AS_STRING
,
&
variant
);
dbus_message_iter_append_basic
(
&
variant
,
DBUS_TYPE_STRING
,
&
psz_variant
);
dbus_message_iter_close_container
(
&
dict_entry
,
&
variant
);
free
(
psz_variant
);
}
}
}
free
(
psz_entry
);
dbus_message_iter_close_container
(
&
dict
,
&
dict_entry
);
dbus_message_iter_close_container
(
&
dict
,
&
dict_entry
);
}
}
...
...
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