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
6d2df912
Commit
6d2df912
authored
May 14, 2006
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* vlc-meta fixes
parent
42b2536e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
modules/demux/mpc.c
modules/demux/mpc.c
+7
-5
modules/demux/real.c
modules/demux/real.c
+4
-4
No files found.
modules/demux/mpc.c
View file @
6d2df912
...
@@ -237,7 +237,9 @@ static int Open( vlc_object_t * p_this )
...
@@ -237,7 +237,9 @@ static int Open( vlc_object_t * p_this )
p_sys
->
p_meta
=
vlc_meta_New
();
p_sys
->
p_meta
=
vlc_meta_New
();
sprintf
(
psz_info
,
"Musepack v%d"
,
p_sys
->
info
.
stream_version
);
sprintf
(
psz_info
,
"Musepack v%d"
,
p_sys
->
info
.
stream_version
);
vlc_meta_Add
(
p_sys
->
p_meta
,
VLC_META_CODEC_NAME
,
psz_info
);
//vlc_meta_SetCodecName( p_sys->p_meta, psz_info );
// ^^ doesn't exist (yet?) to set VLC_META_CODEC_NAME, so...
fprintf
(
stderr
,
"***** WARNING: Unhandled child meta
\n
"
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
...
@@ -298,16 +300,16 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -298,16 +300,16 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
double
f
,
*
pf
;
double
f
,
*
pf
;
int64_t
i64
,
*
pi64
;
int64_t
i64
,
*
pi64
;
vlc_meta_t
*
*
p
p_meta
;
vlc_meta_t
*
p_meta
;
switch
(
i_query
)
switch
(
i_query
)
{
{
case
DEMUX_GET_META
:
case
DEMUX_GET_META
:
p
p_meta
=
(
vlc_meta_t
**
)
va_arg
(
args
,
vlc_meta_t
*
*
);
p
_meta
=
(
vlc_meta_t
*
)
va_arg
(
args
,
vlc_meta_t
*
);
if
(
p_sys
->
p_meta
)
if
(
p_sys
->
p_meta
)
*
pp_meta
=
vlc_meta_Duplicate
(
p_sys
->
p_meta
);
vlc_meta_Merge
(
p_meta
,
p_sys
->
p_meta
);
else
else
*
p
p_meta
=
NULL
;
p_meta
=
NULL
;
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
case
DEMUX_GET_LENGTH
:
case
DEMUX_GET_LENGTH
:
...
...
modules/demux/real.c
View file @
6d2df912
...
@@ -761,7 +761,7 @@ static int HeaderRead( demux_t *p_demux )
...
@@ -761,7 +761,7 @@ static int HeaderRead( demux_t *p_demux )
msg_Dbg
(
p_demux
,
" - title=`%s'"
,
psz
);
msg_Dbg
(
p_demux
,
" - title=`%s'"
,
psz
);
EnsureUTF8
(
psz
);
EnsureUTF8
(
psz
);
vlc_meta_
Add
(
p_sys
->
p_meta
,
VLC_META_TITLE
,
psz
);
vlc_meta_
SetTitle
(
p_sys
->
p_meta
,
psz
);
free
(
psz
);
free
(
psz
);
i_skip
-=
i_len
;
i_skip
-=
i_len
;
}
}
...
@@ -776,7 +776,7 @@ static int HeaderRead( demux_t *p_demux )
...
@@ -776,7 +776,7 @@ static int HeaderRead( demux_t *p_demux )
msg_Dbg
(
p_demux
,
" - author=`%s'"
,
psz
);
msg_Dbg
(
p_demux
,
" - author=`%s'"
,
psz
);
EnsureUTF8
(
psz
);
EnsureUTF8
(
psz
);
vlc_meta_
Add
(
p_sys
->
p_meta
,
VLC_META_ARTIST
,
psz
);
vlc_meta_
SetArtist
(
p_sys
->
p_meta
,
psz
);
free
(
psz
);
free
(
psz
);
i_skip
-=
i_len
;
i_skip
-=
i_len
;
}
}
...
@@ -791,7 +791,7 @@ static int HeaderRead( demux_t *p_demux )
...
@@ -791,7 +791,7 @@ static int HeaderRead( demux_t *p_demux )
msg_Dbg
(
p_demux
,
" - copyright=`%s'"
,
psz
);
msg_Dbg
(
p_demux
,
" - copyright=`%s'"
,
psz
);
EnsureUTF8
(
psz
);
EnsureUTF8
(
psz
);
vlc_meta_
Add
(
p_sys
->
p_meta
,
VLC_META_COPYRIGHT
,
psz
);
vlc_meta_
SetCopyright
(
p_sys
->
p_meta
,
psz
);
free
(
psz
);
free
(
psz
);
i_skip
-=
i_len
;
i_skip
-=
i_len
;
}
}
...
@@ -806,7 +806,7 @@ static int HeaderRead( demux_t *p_demux )
...
@@ -806,7 +806,7 @@ static int HeaderRead( demux_t *p_demux )
msg_Dbg
(
p_demux
,
" - comment=`%s'"
,
psz
);
msg_Dbg
(
p_demux
,
" - comment=`%s'"
,
psz
);
EnsureUTF8
(
psz
);
EnsureUTF8
(
psz
);
vlc_meta_
Add
(
p_sys
->
p_meta
,
VLC_META_DESCRIPTION
,
psz
);
vlc_meta_
SetDescription
(
p_sys
->
p_meta
,
psz
);
free
(
psz
);
free
(
psz
);
i_skip
-=
i_len
;
i_skip
-=
i_len
;
}
}
...
...
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