Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
d084716e
Commit
d084716e
authored
Aug 15, 2007
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4: compile fixes, replaced asnprintf by snprintf, which is a better choice in that context
parent
a26821d0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
include/vlc_input.h
include/vlc_input.h
+1
-0
modules/gui/qt4/playlist_model.cpp
modules/gui/qt4/playlist_model.cpp
+5
-5
No files found.
include/vlc_input.h
View file @
d084716e
...
...
@@ -310,6 +310,7 @@ static inline void input_item_MetaMerge( input_item_t *p_i, const vlc_meta_t * p
#define input_item_GetEncodedBy( item ) input_item_GetMeta( item, vlc_meta_EncodedBy )
#define input_item_GetArtURL( item ) input_item_GetMeta( item, vlc_meta_ArtworkURL )
#define input_item_GetTrackID( item ) input_item_GetMeta( item, vlc_meta_TrackID )
#define input_item_GetSetting( item ) input_item_GetMeta( item, vlc_meta_Setting )
VLC_EXPORT
(
char
*
,
input_ItemGetInfo
,
(
input_item_t
*
p_i
,
const
char
*
psz_cat
,
const
char
*
psz_name
)
);
VLC_EXPORT
(
int
,
input_ItemAddInfo
,
(
input_item_t
*
p_i
,
const
char
*
psz_cat
,
const
char
*
psz_name
,
const
char
*
psz_format
,
...
)
);
...
...
modules/gui/qt4/playlist_model.cpp
View file @
d084716e
...
...
@@ -184,9 +184,9 @@ void PLItem::update( playlist_item_t *p_item, bool iscurrent )
type
=
p_item
->
p_input
->
i_type
;
current
=
iscurrent
;
if
(
current
&&
input_item_GetArtURL
(
p_item
)
&&
!
strncmp
(
input_item_GetArtURL
(
p_item
),
"file://"
,
7
)
)
model
->
sendArt
(
qfu
(
input_item_GetArtURL
(
p_item
)
)
);
if
(
current
&&
input_item_GetArtURL
(
p_item
->
p_input
)
&&
!
strncmp
(
input_item_GetArtURL
(
p_item
->
p_input
),
"file://"
,
7
)
)
model
->
sendArt
(
qfu
(
input_item_GetArtURL
(
p_item
->
p_input
)
)
);
else
if
(
current
)
model
->
removeArt
();
...
...
@@ -199,8 +199,8 @@ void PLItem::update( playlist_item_t *p_item, bool iscurrent )
}
#define ADD_META( item, meta )
{
\
strings.append( qfu( input_item_Get ## meta ( item->p_input ) ) )
; \
#define ADD_META( item, meta ) \
strings.append( qfu( input_item_Get ## meta ( item->p_input ) ) )
for
(
int
i_index
=
1
;
i_index
<=
VLC_META_ENGINE_MB_TRM_ID
;
i_index
=
i_index
*
2
)
{
...
...
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