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
17604330
Commit
17604330
authored
Jun 07, 2004
by
Warren Dukes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove metadata debugging code
git-svn-id:
https://svn.musicpd.org/mpd/trunk@1378
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
5b5dd126
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
11 deletions
+0
-11
decode.c
src/decode.c
+0
-2
inputStream_http.c
src/inputStream_http.c
+0
-2
outputBuffer.c
src/outputBuffer.c
+0
-7
No files found.
src/decode.c
View file @
17604330
...
...
@@ -395,7 +395,6 @@ void handleMetadata(OutputBuffer * cb, PlayerControl * pc, int * previous,
int
meta
=
cb
->
metaChunk
[
cb
->
begin
];
if
(
meta
!=
*
previous
)
{
if
(
meta
>=
0
&&
cb
->
metaChunkSet
[
meta
])
{
printf
(
"METADATA!, copying it.
\n
"
);
memcpy
(
currentChunk
,
cb
->
metadataChunks
+
meta
,
sizeof
(
MetadataChunk
));
...
...
@@ -408,7 +407,6 @@ void handleMetadata(OutputBuffer * cb, PlayerControl * pc, int * previous,
if
(
!
(
*
currentChunkSent
)
&&
pc
->
metadataState
==
PLAYER_METADATA_STATE_WRITE
)
{
printf
(
"copy metadata to player
\n
"
);
*
currentChunkSent
=
1
;
memcpy
(
&
(
pc
->
metadataChunk
),
currentChunk
,
sizeof
(
MetadataChunk
));
...
...
src/inputStream_http.c
View file @
17604330
...
...
@@ -368,7 +368,6 @@ static int getHTTPHello(InputStream * inStream) {
}
else
if
(
0
==
strncmp
(
cur
,
"
\r\n
icy-metaint:"
,
14
))
{
data
->
icyMetaint
=
atoi
(
cur
+
14
);
printf
(
"icyMetaint: %i
\n
"
,
data
->
icyMetaint
);
}
else
if
(
0
==
strncmp
(
cur
,
"
\r\n
icy-name:"
,
11
))
{
int
incr
=
11
;
...
...
@@ -461,7 +460,6 @@ static void parseIcyMetadata(InputStream * inStream, char * metadata,
while
(
s
)
{
if
(
0
==
strncmp
(
s
,
"StreamTitle="
,
12
))
{
int
cur
=
12
;
printf
(
"StreamTitle: %s
\n
"
,
s
+
cur
);
if
(
inStream
->
metaTitle
)
free
(
inStream
->
metaTitle
);
if
(
*
(
s
+
cur
)
==
'\''
)
cur
++
;
if
(
s
[
strlen
(
s
)
-
1
]
==
'\''
)
{
...
...
src/outputBuffer.c
View file @
17604330
...
...
@@ -149,8 +149,6 @@ int copyMpdTagToOutputBuffer(OutputBuffer * cb, MpdTag * tag) {
int
nextChunk
;
static
MpdTag
*
last
=
NULL
;
printf
(
"copyMpdTagToOB called
\n
"
);
if
(
!
cb
->
acceptMetadata
||
!
tag
)
{
sendMetaChunk
=
0
;
if
(
last
)
free
(
last
);
...
...
@@ -158,10 +156,7 @@ int copyMpdTagToOutputBuffer(OutputBuffer * cb, MpdTag * tag) {
return
0
;
}
if
(
!
last
)
printf
(
"OH SHIT
\n
"
);
if
(
last
&&
mpdTagsAreEqual
(
last
,
tag
))
{
printf
(
"same as last
\n
"
);
return
0
;
}
...
...
@@ -178,8 +173,6 @@ int copyMpdTagToOutputBuffer(OutputBuffer * cb, MpdTag * tag) {
last
=
mpdTagDup
(
tag
);
printMpdTag
(
stdout
,
last
);
copyMpdTagToMetadataChunk
(
tag
,
&
(
cb
->
metadataChunks
[
currentMetaChunk
]));
cb
->
metaChunkSet
[
nextChunk
]
=
1
;
...
...
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