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
99e9f2fa
Commit
99e9f2fa
authored
May 11, 2009
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbus: Add iso936 language code to meta data information.
parent
62eff4b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
1 deletion
+29
-1
modules/control/dbus.c
modules/control/dbus.c
+29
-1
No files found.
modules/control/dbus.c
View file @
99e9f2fa
...
...
@@ -57,6 +57,8 @@
#include <vlc_interface.h>
#include <vlc_playlist.h>
#include <vlc_iso_lang.h>
#include <math.h>
#include <assert.h>
...
...
@@ -2268,8 +2270,34 @@ static int GetInputEsMeta( input_item_t * p_item, int32_t i_es,
dbus_message_iter_close_container
(
&
dict_entry
,
&
variant
);
free
(
psz_variant
);
}
dbus_message_iter_close_container
(
&
dict
,
&
dict_entry
);
if
(
!
strcmp
(
psz_name
,
"Language"
)
)
{
const
struct
iso639_lang_t
*
code
=
GetLang_iso936
(
psz_value
);
char
*
psz_code
=
strdup
(
"iso936_1"
);
psz_variant
=
NULL
;
dbus_message_iter_open_container
(
&
dict
,
DBUS_TYPE_DICT_ENTRY
,
NULL
,
&
dict_entry
);
dbus_message_iter_append_basic
(
&
dict_entry
,
DBUS_TYPE_STRING
,
&
psz_code
);
if
(
asprintf
(
&
psz_variant
,
"%s"
,
code
->
psz_iso639_1
)
!=
-
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
);
}
dbus_message_iter_close_container
(
&
dict
,
&
dict_entry
);
free
(
psz_code
);
}
}
}
...
...
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