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
b23d2ad4
Commit
b23d2ad4
authored
Dec 03, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist/asx: rename "tag" to "tag_type"
parent
ef68946e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
AsxPlaylistPlugin.cxx
src/playlist/AsxPlaylistPlugin.cxx
+7
-7
No files found.
src/playlist/AsxPlaylistPlugin.cxx
View file @
b23d2ad4
...
@@ -57,7 +57,7 @@ struct AsxParser {
...
@@ -57,7 +57,7 @@ struct AsxParser {
* valid if state==ENTRY. TAG_NUM_OF_ITEM_TYPES means there
* valid if state==ENTRY. TAG_NUM_OF_ITEM_TYPES means there
* is no (known) tag.
* is no (known) tag.
*/
*/
TagType
tag
;
TagType
tag
_type
;
/**
/**
* The current song. It is allocated after the "location"
* The current song. It is allocated after the "location"
...
@@ -95,7 +95,7 @@ asx_start_element(gcc_unused GMarkupParseContext *context,
...
@@ -95,7 +95,7 @@ asx_start_element(gcc_unused GMarkupParseContext *context,
if
(
StringEqualsCaseASCII
(
element_name
,
"entry"
))
{
if
(
StringEqualsCaseASCII
(
element_name
,
"entry"
))
{
parser
->
state
=
AsxParser
::
ENTRY
;
parser
->
state
=
AsxParser
::
ENTRY
;
parser
->
song
=
Song
::
NewRemote
(
"asx:"
);
parser
->
song
=
Song
::
NewRemote
(
"asx:"
);
parser
->
tag
=
TAG_NUM_OF_ITEM_TYPES
;
parser
->
tag
_type
=
TAG_NUM_OF_ITEM_TYPES
;
}
}
break
;
break
;
...
@@ -124,9 +124,9 @@ asx_start_element(gcc_unused GMarkupParseContext *context,
...
@@ -124,9 +124,9 @@ asx_start_element(gcc_unused GMarkupParseContext *context,
}
else
if
(
StringEqualsCaseASCII
(
element_name
,
"author"
))
}
else
if
(
StringEqualsCaseASCII
(
element_name
,
"author"
))
/* is that correct? or should it be COMPOSER
/* is that correct? or should it be COMPOSER
or PERFORMER? */
or PERFORMER? */
parser
->
tag
=
TAG_ARTIST
;
parser
->
tag
_type
=
TAG_ARTIST
;
else
if
(
StringEqualsCaseASCII
(
element_name
,
"title"
))
else
if
(
StringEqualsCaseASCII
(
element_name
,
"title"
))
parser
->
tag
=
TAG_TITLE
;
parser
->
tag
_type
=
TAG_TITLE
;
break
;
break
;
}
}
...
@@ -152,7 +152,7 @@ asx_end_element(gcc_unused GMarkupParseContext *context,
...
@@ -152,7 +152,7 @@ asx_end_element(gcc_unused GMarkupParseContext *context,
parser
->
state
=
AsxParser
::
ROOT
;
parser
->
state
=
AsxParser
::
ROOT
;
}
else
}
else
parser
->
tag
=
TAG_NUM_OF_ITEM_TYPES
;
parser
->
tag
_type
=
TAG_NUM_OF_ITEM_TYPES
;
break
;
break
;
}
}
...
@@ -170,10 +170,10 @@ asx_text(gcc_unused GMarkupParseContext *context,
...
@@ -170,10 +170,10 @@ asx_text(gcc_unused GMarkupParseContext *context,
break
;
break
;
case
AsxParser
:
:
ENTRY
:
case
AsxParser
:
:
ENTRY
:
if
(
parser
->
tag
!=
TAG_NUM_OF_ITEM_TYPES
)
{
if
(
parser
->
tag
_type
!=
TAG_NUM_OF_ITEM_TYPES
)
{
if
(
parser
->
song
->
tag
==
nullptr
)
if
(
parser
->
song
->
tag
==
nullptr
)
parser
->
song
->
tag
=
new
Tag
();
parser
->
song
->
tag
=
new
Tag
();
parser
->
song
->
tag
->
AddItem
(
parser
->
tag
,
parser
->
song
->
tag
->
AddItem
(
parser
->
tag
_type
,
text
,
text_len
);
text
,
text_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