Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
68fc3704
Commit
68fc3704
authored
Dec 03, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CueParser: rename "tag" to "header_tag"
parent
69867015
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
CueParser.cxx
src/cue/CueParser.cxx
+5
-5
CueParser.hxx
src/cue/CueParser.hxx
+4
-1
No files found.
src/cue/CueParser.cxx
View file @
68fc3704
...
...
@@ -31,7 +31,7 @@
#include <stdlib.h>
CueParser
::
CueParser
()
:
state
(
HEADER
),
tag
(
new
Tag
()),
:
state
(
HEADER
),
header_
tag
(
new
Tag
()),
current
(
nullptr
),
previous
(
nullptr
),
finished
(
nullptr
),
...
...
@@ -39,7 +39,7 @@ CueParser::CueParser()
CueParser
::~
CueParser
()
{
delete
tag
;
delete
header_
tag
;
if
(
current
!=
nullptr
)
current
->
Free
();
...
...
@@ -133,7 +133,7 @@ Tag *
CueParser
::
GetCurrentTag
()
{
if
(
state
==
HEADER
)
return
tag
;
return
header_
tag
;
else
if
(
state
==
TRACK
)
return
current
->
tag
;
else
...
...
@@ -207,7 +207,7 @@ CueParser::Feed2(char *p)
cue_add_tag
(
*
current_tag
,
type
,
p
);
}
else
if
(
strcmp
(
command
,
"TITLE"
)
==
0
)
{
if
(
state
==
HEADER
)
cue_add_tag
(
*
tag
,
TAG_ALBUM
,
p
);
cue_add_tag
(
*
header_
tag
,
TAG_ALBUM
,
p
);
else
if
(
state
==
TRACK
)
cue_add_tag
(
*
current
->
tag
,
TAG_TITLE
,
p
);
}
else
if
(
strcmp
(
command
,
"FILE"
)
==
0
)
{
...
...
@@ -251,7 +251,7 @@ CueParser::Feed2(char *p)
state
=
TRACK
;
current
=
Song
::
NewRemote
(
filename
.
c_str
());
assert
(
current
->
tag
==
nullptr
);
current
->
tag
=
new
Tag
(
*
tag
);
current
->
tag
=
new
Tag
(
*
header_
tag
);
current
->
tag
->
AddItem
(
TAG_TRACK
,
nr
);
last_updated
=
false
;
}
else
if
(
state
==
IGNORE_TRACK
)
{
...
...
src/cue/CueParser.hxx
View file @
68fc3704
...
...
@@ -56,7 +56,10 @@ class CueParser {
IGNORE_TRACK
,
}
state
;
Tag
*
tag
;
/**
* Tags read from the CUE header.
*/
Tag
*
header_tag
;
std
::
string
filename
;
...
...
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