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
c4292a15
Commit
c4292a15
authored
Aug 15, 2007
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4: forgot that file in previous commit
parent
d1b200df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
modules/gui/qt4/components/infopanels.cpp
modules/gui/qt4/components/infopanels.cpp
+6
-8
No files found.
modules/gui/qt4/components/infopanels.cpp
View file @
c4292a15
...
...
@@ -136,7 +136,7 @@ MetaPanel::~MetaPanel(){}
void
MetaPanel
::
saveMeta
()
{
playlist_t
*
p_playlist
;
char
*
psz
;
char
psz
[
5
]
;
meta_export_t
p_export
;
p_export
.
p_item
=
p_input
;
...
...
@@ -162,14 +162,12 @@ void MetaPanel::saveMeta()
input_item_SetArtist
(
p_input
,
qtu
(
artist_text
->
text
()
)
);
input_item_SetAlbum
(
p_input
,
qtu
(
collection_text
->
text
()
)
);
input_item_SetGenre
(
p_input
,
qtu
(
genre_text
->
text
()
)
);
asnprintf
(
&
psz
,
5
,
"%d"
,
date_text
->
value
()
);
snprintf
(
psz
,
sizeof
(
psz
)
,
"%d"
,
date_text
->
value
()
);
input_item_SetDate
(
p_input
,
psz
);
free
(
psz
);
asnprintf
(
&
psz
,
5
,
"%d"
,
seqnum_text
->
value
()
);
snprintf
(
psz
,
sizeof
(
psz
)
,
"%d"
,
seqnum_text
->
value
()
);
input_item_SetTrackNum
(
p_input
,
psz
);
free
(
psz
);
input_item_SetTitle
(
p_input
,
qtu
(
title_text
->
text
()
)
);
...
...
@@ -190,7 +188,7 @@ void MetaPanel::saveMeta()
**/
void
MetaPanel
::
update
(
input_item_t
*
p_item
)
{
char
*
psz_meta
;
c
onst
c
har
*
psz_meta
;
#define UPDATE_META( meta, widget ) { \
psz_meta = input_item_Get##meta( p_item ); \
if( !EMPTY_STR( psz_meta ) ) \
...
...
@@ -230,7 +228,7 @@ void MetaPanel::update( input_item_t *p_item )
UPDATE_META
(
Setting
,
setting_text
);
UPDATE_META_INT
(
Date
,
date_text
);
UPDATE_META_INT
(
Track
n
um
,
seqnum_text
);
UPDATE_META_INT
(
Track
N
um
,
seqnum_text
);
UPDATE_META_INT
(
Rating
,
rating_text
);
#undef UPDATE_META_INT
...
...
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