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
7f779f6a
Commit
7f779f6a
authored
Sep 30, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge author/artist
WX compilation unchecked
parent
9a128b54
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
34 additions
and
38 deletions
+34
-38
include/vlc_meta.h
include/vlc_meta.h
+0
-7
include/vlc_symbols.h
include/vlc_symbols.h
+3
-0
modules/codec/ffmpeg/demux.c
modules/codec/ffmpeg/demux.c
+1
-1
modules/demux/asf/asf.c
modules/demux/asf/asf.c
+2
-2
modules/demux/asf/libasf.c
modules/demux/asf/libasf.c
+6
-6
modules/demux/asf/libasf.h
modules/demux/asf/libasf.h
+1
-1
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+1
-1
modules/demux/playlist/asx.c
modules/demux/playlist/asx.c
+7
-7
modules/gui/wxwidgets/dialogs/playlist.cpp
modules/gui/wxwidgets/dialogs/playlist.cpp
+6
-6
modules/gui/wxwidgets/playlist_manager.cpp
modules/gui/wxwidgets/playlist_manager.cpp
+5
-5
modules/misc/playlist/xspf.c
modules/misc/playlist/xspf.c
+2
-2
No files found.
include/vlc_meta.h
View file @
7f779f6a
...
...
@@ -27,7 +27,6 @@
/* VLC meta name */
#define VLC_META_INFO_CAT N_("Meta-information")
#define VLC_META_TITLE N_("Title")
#define VLC_META_AUTHOR N_("Author")
#define VLC_META_ARTIST N_("Artist")
#define VLC_META_GENRE N_("Genre")
#define VLC_META_COPYRIGHT N_("Copyright")
...
...
@@ -56,7 +55,6 @@
struct
vlc_meta_t
{
char
*
psz_title
;
char
*
psz_author
;
char
*
psz_artist
;
char
*
psz_genre
;
char
*
psz_copyright
;
...
...
@@ -87,7 +85,6 @@ struct vlc_meta_t
#define vlc_meta_SetTitle( meta, b ) vlc_meta_Set( meta, title, b );
#define vlc_meta_SetArtist( meta, b ) vlc_meta_Set( meta, artist, b );
#define vlc_meta_SetAuthor( meta, b ) vlc_meta_Set( meta, author, b );
#define vlc_meta_SetGenre( meta, b ) vlc_meta_Set( meta, genre, b );
#define vlc_meta_SetCopyright( meta, b ) vlc_meta_Set( meta, copyright, b );
#define vlc_meta_SetAlbum( meta, b ) vlc_meta_Set( meta, album, b );
...
...
@@ -108,7 +105,6 @@ static inline vlc_meta_t *vlc_meta_New( void )
vlc_meta_t
*
m
=
(
vlc_meta_t
*
)
malloc
(
sizeof
(
vlc_meta_t
)
);
if
(
!
m
)
return
NULL
;
m
->
psz_title
=
NULL
;
m
->
psz_author
=
NULL
;
m
->
psz_artist
=
NULL
;
m
->
psz_genre
=
NULL
;
m
->
psz_copyright
=
NULL
;
...
...
@@ -131,7 +127,6 @@ static inline vlc_meta_t *vlc_meta_New( void )
static
inline
void
vlc_meta_Delete
(
vlc_meta_t
*
m
)
{
free
(
m
->
psz_title
);
free
(
m
->
psz_author
);
free
(
m
->
psz_artist
);
free
(
m
->
psz_genre
);
free
(
m
->
psz_copyright
);
...
...
@@ -160,7 +155,6 @@ static inline void vlc_meta_Merge( vlc_meta_t *dst, vlc_meta_t *src )
dst->psz_##a = strdup( src->psz_##a ); \
}
COPY_FIELD
(
title
);
COPY_FIELD
(
author
);
COPY_FIELD
(
artist
);
COPY_FIELD
(
genre
);
COPY_FIELD
(
copyright
);
...
...
@@ -192,7 +186,6 @@ struct meta_export_t
};
#define VLC_META_ENGINE_TITLE 0x00000001
#define VLC_META_ENGINE_AUTHOR 0x00000002
#define VLC_META_ENGINE_ARTIST 0x00000004
#define VLC_META_ENGINE_GENRE 0x00000008
#define VLC_META_ENGINE_COPYRIGHT 0x00000010
...
...
include/vlc_symbols.h
View file @
7f779f6a
...
...
@@ -549,6 +549,7 @@ struct module_symbols_t
void
*
__input_ArtFetch_deprecated
;
void
*
input_AskForArt_deprecated
;
int
(
*
playlist_AskForArtEnqueue_inner
)
(
playlist_t
*
,
input_item_t
*
);
uint32_t
(
*
input_CurrentMetaFlags_inner
)
(
vlc_meta_t
*
p_meta
);
};
# if defined (__PLUGIN__)
# define aout_FiltersCreatePipeline (p_symbols)->aout_FiltersCreatePipeline_inner
...
...
@@ -1023,6 +1024,7 @@ struct module_symbols_t
# define input_ItemAddInfo (p_symbols)->input_ItemAddInfo_inner
# define input_ItemAddOptionNoDup (p_symbols)->input_ItemAddOptionNoDup_inner
# define playlist_AskForArtEnqueue (p_symbols)->playlist_AskForArtEnqueue_inner
# define input_CurrentMetaFlags (p_symbols)->input_CurrentMetaFlags_inner
# elif defined (HAVE_DYNAMIC_PLUGINS) && !defined (__BUILTIN__)
/******************************************************************
* STORE_SYMBOLS: store VLC APIs into p_symbols for plugin access.
...
...
@@ -1500,6 +1502,7 @@ struct module_symbols_t
((p_symbols)->input_ItemAddInfo_inner) = input_ItemAddInfo; \
((p_symbols)->input_ItemAddOptionNoDup_inner) = input_ItemAddOptionNoDup; \
((p_symbols)->playlist_AskForArtEnqueue_inner) = playlist_AskForArtEnqueue; \
((p_symbols)->input_CurrentMetaFlags_inner) = input_CurrentMetaFlags; \
(p_symbols)->net_ConvertIPv4_deprecated = NULL; \
(p_symbols)->vlc_input_item_GetInfo_deprecated = NULL; \
(p_symbols)->vlc_input_item_AddInfo_deprecated = NULL; \
...
...
modules/codec/ffmpeg/demux.c
View file @
7f779f6a
...
...
@@ -413,7 +413,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
if
(
p_sys
->
ic
->
title
[
0
]
)
vlc_meta_SetTitle
(
p_meta
,
p_sys
->
ic
->
title
);
if
(
p_sys
->
ic
->
author
[
0
]
)
vlc_meta_SetA
uthor
(
p_meta
,
p_sys
->
ic
->
author
);
vlc_meta_SetA
rtist
(
p_meta
,
p_sys
->
ic
->
author
);
if
(
p_sys
->
ic
->
copyright
[
0
]
)
vlc_meta_SetCopyright
(
p_meta
,
p_sys
->
ic
->
copyright
);
if
(
p_sys
->
ic
->
comment
[
0
]
)
...
...
modules/demux/asf/asf.c
View file @
7f779f6a
...
...
@@ -817,9 +817,9 @@ static int DemuxInit( demux_t *p_demux )
{
vlc_meta_SetTitle
(
p_sys
->
meta
,
p_cd
->
psz_title
);
}
if
(
p_cd
->
psz_a
uthor
&&
*
p_cd
->
psz_author
)
if
(
p_cd
->
psz_a
rtist
&&
*
p_cd
->
psz_artist
)
{
vlc_meta_SetA
uthor
(
p_sys
->
meta
,
p_cd
->
psz_author
);
vlc_meta_SetA
rtist
(
p_sys
->
meta
,
p_cd
->
psz_artist
);
}
if
(
p_cd
->
psz_copyright
&&
*
p_cd
->
psz_copyright
)
{
...
...
modules/demux/asf/libasf.c
View file @
7f779f6a
...
...
@@ -672,7 +672,7 @@ static int ASF_ReadObject_content_description(stream_t *s, asf_object_t *p_obj)
asf_object_content_description_t
*
p_cd
=
(
asf_object_content_description_t
*
)
p_obj
;
uint8_t
*
p_peek
,
*
p_data
;
int
i_peek
,
i_title
,
i_a
uthor
,
i_copyright
,
i_description
,
i_rating
;
int
i_peek
,
i_title
,
i_a
rtist
,
i_copyright
,
i_description
,
i_rating
;
vlc_iconv_t
cd
=
(
vlc_iconv_t
)
-
1
;
const
char
*
ib
=
NULL
;
char
*
ob
=
NULL
;
...
...
@@ -701,13 +701,13 @@ static int ASF_ReadObject_content_description(stream_t *s, asf_object_t *p_obj)
p_data
=
p_peek
+
24
;
i_title
=
GetWLE
(
p_data
);
p_data
+=
2
;
i_a
uthor
=
GetWLE
(
p_data
);
p_data
+=
2
;
i_a
rtist
=
GetWLE
(
p_data
);
p_data
+=
2
;
i_copyright
=
GetWLE
(
p_data
);
p_data
+=
2
;
i_description
=
GetWLE
(
p_data
);
p_data
+=
2
;
i_rating
=
GetWLE
(
p_data
);
p_data
+=
2
;
GETSTRINGW
(
p_cd
->
psz_title
,
i_title
);
GETSTRINGW
(
p_cd
->
psz_a
uthor
,
i_author
);
GETSTRINGW
(
p_cd
->
psz_a
rtist
,
i_artist
);
GETSTRINGW
(
p_cd
->
psz_copyright
,
i_copyright
);
GETSTRINGW
(
p_cd
->
psz_description
,
i_description
);
GETSTRINGW
(
p_cd
->
psz_rating
,
i_rating
);
...
...
@@ -716,9 +716,9 @@ static int ASF_ReadObject_content_description(stream_t *s, asf_object_t *p_obj)
#ifdef ASF_DEBUG
msg_Dbg
(
s
,
"read
\"
content description object
\"
title:
\"
%s
\"
a
uthor
:
\"
%s
\"
copyright:
\"
%s
\"
description:
\"
%s
\"
rating:
\"
%s
\"
"
,
"read
\"
content description object
\"
title:
\"
%s
\"
a
rtist
:
\"
%s
\"
copyright:
\"
%s
\"
description:
\"
%s
\"
rating:
\"
%s
\"
"
,
p_cd
->
psz_title
,
p_cd
->
psz_a
uthor
,
p_cd
->
psz_a
rtist
,
p_cd
->
psz_copyright
,
p_cd
->
psz_description
,
p_cd
->
psz_rating
);
...
...
@@ -734,7 +734,7 @@ static void ASF_FreeObject_content_description( asf_object_t *p_obj)
(
asf_object_content_description_t
*
)
p_obj
;
FREENULL
(
p_cd
->
psz_title
);
FREENULL
(
p_cd
->
psz_a
uthor
);
FREENULL
(
p_cd
->
psz_a
rtist
);
FREENULL
(
p_cd
->
psz_copyright
);
FREENULL
(
p_cd
->
psz_description
);
FREENULL
(
p_cd
->
psz_rating
);
...
...
modules/demux/asf/libasf.h
View file @
7f779f6a
...
...
@@ -264,7 +264,7 @@ typedef struct
ASF_OBJECT_COMMON
char
*
psz_title
;
char
*
psz_a
uthor
;
char
*
psz_a
rtist
;
char
*
psz_copyright
;
char
*
psz_description
;
char
*
psz_rating
;
...
...
modules/demux/mp4/mp4.c
View file @
7f779f6a
...
...
@@ -805,7 +805,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
vlc_meta_SetArtist
(
p_meta
,
psz_utf
);
break
;
case
FOURCC_0xa9aut
:
vlc_meta_SetA
uthor
(
p_meta
,
psz_utf
);
vlc_meta_SetA
rtist
(
p_meta
,
psz_utf
);
break
;
case
FOURCC_0xa9ART
:
vlc_meta_SetArtist
(
p_meta
,
psz_utf
);
...
...
modules/demux/playlist/asx.c
View file @
7f779f6a
...
...
@@ -166,14 +166,14 @@ static int Demux( demux_t *p_demux )
char
*
psz_base_asx
=
NULL
;
char
*
psz_title_asx
=
NULL
;
char
*
psz_a
uthor
_asx
=
NULL
;
char
*
psz_a
rtist
_asx
=
NULL
;
char
*
psz_copyright_asx
=
NULL
;
char
*
psz_moreinfo_asx
=
NULL
;
char
*
psz_abstract_asx
=
NULL
;
char
*
psz_base_entry
=
NULL
;
char
*
psz_title_entry
=
NULL
;
char
*
psz_a
uthor
_entry
=
NULL
;
char
*
psz_a
rtist
_entry
=
NULL
;
char
*
psz_copyright_entry
=
NULL
;
char
*
psz_moreinfo_entry
=
NULL
;
char
*
psz_abstract_entry
=
NULL
;
...
...
@@ -292,7 +292,7 @@ static int Demux( demux_t *p_demux )
psz_backup
=
psz_parse
+=
8
;
if
(
(
psz_parse
=
strcasestr
(
psz_parse
,
"</Author>"
)
)
)
{
StoreString
(
p_demux
,
(
b_entry
?
&
psz_a
uthor_entry
:
&
psz_author
_asx
),
psz_backup
,
psz_parse
);
StoreString
(
p_demux
,
(
b_entry
?
&
psz_a
rtist_entry
:
&
psz_artist
_asx
),
psz_backup
,
psz_parse
);
psz_parse
+=
9
;
}
else
continue
;
...
...
@@ -379,7 +379,7 @@ static int Demux( demux_t *p_demux )
/* cleanup entry */
FREENULL
(
psz_title_entry
)
FREENULL
(
psz_base_entry
)
FREENULL
(
psz_a
uthor
_entry
)
FREENULL
(
psz_a
rtist
_entry
)
FREENULL
(
psz_copyright_entry
)
FREENULL
(
psz_moreinfo_entry
)
FREENULL
(
psz_abstract_entry
)
...
...
@@ -429,7 +429,7 @@ static int Demux( demux_t *p_demux )
input_ItemCopyOptions
(
p_current
->
p_input
,
p_entry
);
p_entry
->
p_meta
=
vlc_meta_New
();
if
(
psz_title_entry
)
vlc_meta_SetTitle
(
p_entry
->
p_meta
,
psz_title_entry
);
if
(
psz_a
uthor_entry
)
vlc_meta_SetAuthor
(
p_entry
->
p_meta
,
psz_author
_entry
);
if
(
psz_a
rtist_entry
)
vlc_meta_SetArtist
(
p_entry
->
p_meta
,
psz_artist
_entry
);
if
(
psz_copyright_entry
)
vlc_meta_SetCopyright
(
p_entry
->
p_meta
,
psz_copyright_entry
);
if
(
psz_moreinfo_entry
)
vlc_meta_SetURL
(
p_entry
->
p_meta
,
psz_moreinfo_entry
);
if
(
psz_abstract_entry
)
vlc_meta_SetDescription
(
p_entry
->
p_meta
,
psz_abstract_entry
);
...
...
@@ -452,14 +452,14 @@ static int Demux( demux_t *p_demux )
vlc_mutex_lock
(
&
p_current
->
p_input
->
lock
);
if
(
!
p_current
->
p_input
->
p_meta
)
p_current
->
p_input
->
p_meta
=
vlc_meta_New
();
if
(
psz_title_asx
)
vlc_meta_SetTitle
(
p_current
->
p_input
->
p_meta
,
psz_title_asx
);
if
(
psz_a
uthor_asx
)
vlc_meta_SetAuthor
(
p_current
->
p_input
->
p_meta
,
psz_author
_asx
);
if
(
psz_a
rtist_asx
)
vlc_meta_SetArtist
(
p_current
->
p_input
->
p_meta
,
psz_artist
_asx
);
if
(
psz_copyright_asx
)
vlc_meta_SetCopyright
(
p_current
->
p_input
->
p_meta
,
psz_copyright_asx
);
if
(
psz_moreinfo_asx
)
vlc_meta_SetURL
(
p_current
->
p_input
->
p_meta
,
psz_moreinfo_asx
);
if
(
psz_abstract_asx
)
vlc_meta_SetDescription
(
p_current
->
p_input
->
p_meta
,
psz_abstract_asx
);
vlc_mutex_unlock
(
&
p_current
->
p_input
->
lock
);
FREENULL
(
psz_base_asx
);
FREENULL
(
psz_title_asx
);
FREENULL
(
psz_a
uthor
_asx
);
FREENULL
(
psz_a
rtist
_asx
);
FREENULL
(
psz_copyright_asx
);
FREENULL
(
psz_moreinfo_asx
);
FREENULL
(
psz_abstract_asx
);
...
...
modules/gui/wxwidgets/dialogs/playlist.cpp
View file @
7f779f6a
...
...
@@ -515,15 +515,15 @@ void Playlist::UpdateTreeItem( wxTreeItemId item )
wxString
msg
;
wxString
duration
=
wxU
(
""
);
char
*
psz_a
uthor
;
char
*
psz_a
rtist
;
if
(
p_item
->
p_input
->
p_meta
)
{
psz_a
uthor
=
p_item
->
p_input
->
p_meta
->
psz_artist
?
psz_a
rtist
=
p_item
->
p_input
->
p_meta
->
psz_artist
?
strdup
(
p_item
->
p_input
->
p_meta
->
psz_artist
)
:
strdup
(
""
);
}
else
psz_a
uthor
=
strdup
(
""
);
psz_a
rtist
=
strdup
(
""
);
char
psz_duration
[
MSTRTIME_MAX_SIZE
];
mtime_t
dur
=
p_item
->
p_input
->
i_duration
;
...
...
@@ -535,16 +535,16 @@ void Playlist::UpdateTreeItem( wxTreeItemId item )
wxU
(
" )"
)
);
}
if
(
!
strcmp
(
psz_a
uthor
,
""
)
||
p_item
->
p_input
->
b_fixed_name
==
VLC_TRUE
)
if
(
!
strcmp
(
psz_a
rtist
,
""
)
||
p_item
->
p_input
->
b_fixed_name
==
VLC_TRUE
)
{
msg
=
wxString
(
wxU
(
p_item
->
p_input
->
psz_name
)
)
+
duration
;
}
else
{
msg
=
wxString
(
wxU
(
psz_a
uthor
))
+
wxT
(
" - "
)
+
msg
=
wxString
(
wxU
(
psz_a
rtist
))
+
wxT
(
" - "
)
+
wxString
(
wxU
(
p_item
->
p_input
->
psz_name
))
+
duration
;
}
free
(
psz_a
uthor
);
free
(
psz_a
rtist
);
treectrl
->
SetItemText
(
item
,
msg
);
treectrl
->
SetItemImage
(
item
,
p_item
->
p_input
->
i_type
);
...
...
modules/gui/wxwidgets/playlist_manager.cpp
View file @
7f779f6a
...
...
@@ -290,10 +290,10 @@ void PlaylistManager::UpdateTreeItem( wxTreeItemId item )
wxString
msg
;
wxString
duration
=
wxU
(
""
);
char
*
psz_a
uthor
=
p_item
->
p_input
->
p_meta
->
psz_artist
?
char
*
psz_a
rtist
=
p_item
->
p_input
->
p_meta
->
psz_artist
?
strdup
(
p_item
->
p_input
->
p_meta
->
psz_artist
)
:
strdup
(
""
);
if
(
!
psz_a
uthor
)
if
(
!
psz_a
rtist
)
{
UnlockPlaylist
(
p_intf
->
p_sys
,
p_playlist
);
return
;
...
...
@@ -309,16 +309,16 @@ void PlaylistManager::UpdateTreeItem( wxTreeItemId item )
wxU
(
" )"
)
);
}
if
(
!
strcmp
(
psz_a
uthor
,
""
)
||
p_item
->
p_input
->
b_fixed_name
==
VLC_TRUE
)
if
(
!
strcmp
(
psz_a
rtist
,
""
)
||
p_item
->
p_input
->
b_fixed_name
==
VLC_TRUE
)
{
msg
=
wxString
(
wxU
(
p_item
->
p_input
->
psz_name
)
)
+
duration
;
}
else
{
msg
=
wxString
(
wxU
(
psz_a
uthor
))
+
wxT
(
" - "
)
+
msg
=
wxString
(
wxU
(
psz_a
rtist
))
+
wxT
(
" - "
)
+
wxString
(
wxU
(
p_item
->
p_input
->
psz_name
))
+
duration
;
}
free
(
psz_a
uthor
);
free
(
psz_a
rtist
);
treectrl
->
SetItemText
(
item
,
msg
);
treectrl
->
SetItemImage
(
item
,
p_item
->
p_input
->
i_type
);
...
...
modules/misc/playlist/xspf.c
View file @
7f779f6a
...
...
@@ -172,8 +172,8 @@ static void xspf_export_item( playlist_item_t *p_item, FILE *p_file,
}
if
(
!
psz
)
{
psz
=
p_item
->
p_input
->
p_meta
->
psz_a
uthor
?
strdup
(
p_item
->
p_input
->
p_meta
->
psz_a
uthor
)
:
psz
=
p_item
->
p_input
->
p_meta
->
psz_a
rtist
?
strdup
(
p_item
->
p_input
->
p_meta
->
psz_a
rtist
)
:
strdup
(
""
);
}
psz_temp
=
convert_xml_special_chars
(
psz
);
...
...
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