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
9dda53e1
Commit
9dda53e1
authored
May 30, 2010
by
Max Kellermann
Browse files
Options
Browse Files
Download
Plain Diff
Merge release 0.15.10 from branch 'v0.15.x'
Conflicts: NEWS configure.ac src/input/mms_input_plugin.c
parents
e8310211
57e95ea6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
5 deletions
+36
-5
NEWS
NEWS
+8
-0
mad_decoder_plugin.c
src/decoder/mad_decoder_plugin.c
+25
-5
mms_input_plugin.c
src/input/mms_input_plugin.c
+3
-0
No files found.
NEWS
View file @
9dda53e1
...
...
@@ -101,6 +101,14 @@ ver 0.16 (20??/??/??)
* added libwrap support
ver 0.15.10 (2010/05/30)
* input:
- mms: fix memory leak in error handler
- mms: initialize the "eof" attribute
* decoders:
- mad: properly calculate ID3 size without libid3tag
ver 0.15.9 (2010/03/21)
* decoders:
- mad: fix crash when seeking at end of song
...
...
src/decoder/mad_decoder_plugin.c
View file @
9dda53e1
...
...
@@ -468,7 +468,27 @@ static void mp3_parse_id3(struct mp3_data *data, size_t tagsize,
/* This code is enabled when libid3tag is disabled. Instead
of parsing the ID3 frame, it just skips it. */
mad_stream_skip
(
&
data
->
stream
,
tagsize
);
size_t
count
=
data
->
stream
.
bufend
-
data
->
stream
.
this_frame
;
if
(
tagsize
<=
count
)
{
mad_stream_skip
(
&
data
->
stream
,
tagsize
);
}
else
{
mad_stream_skip
(
&
data
->
stream
,
count
);
while
(
count
<
tagsize
)
{
size_t
len
=
tagsize
-
count
;
char
ignored
[
1024
];
if
(
len
>
sizeof
(
ignored
))
len
=
sizeof
(
ignored
);
len
=
decoder_read
(
data
->
decoder
,
data
->
input_stream
,
ignored
,
len
);
if
(
len
==
0
)
break
;
else
count
+=
len
;
}
}
#endif
}
...
...
@@ -476,16 +496,16 @@ static void mp3_parse_id3(struct mp3_data *data, size_t tagsize,
/**
* This function emulates libid3tag when it is disabled. Instead of
* doing a real analyzation of the frame, it just checks whether the
* frame begins with the string "ID3". If so, it returns the
full
*
length
.
* frame begins with the string "ID3". If so, it returns the
length
*
of the ID3 frame
.
*/
static
signed
long
id3_tag_query
(
const
void
*
p0
,
size_t
length
)
{
const
char
*
p
=
p0
;
return
length
>
3
&&
memcmp
(
p
,
"ID3"
,
3
)
==
0
?
length
return
length
>
=
10
&&
memcmp
(
p
,
"ID3"
,
3
)
==
0
?
(
p
[
8
]
<<
7
)
+
p
[
9
]
+
10
:
0
;
}
#endif
/* !HAVE_ID3TAG */
...
...
src/input/mms_input_plugin.c
View file @
9dda53e1
...
...
@@ -60,10 +60,13 @@ input_mms_open(const char *url, GError **error_r)
m
->
mms
=
mmsx_connect
(
NULL
,
NULL
,
url
,
128
*
1024
);
if
(
m
->
mms
==
NULL
)
{
g_free
(
m
);
g_set_error
(
error_r
,
mms_quark
(),
0
,
"mmsx_connect() failed"
);
return
NULL
;
}
m
->
eof
=
false
;
/* XX is this correct? at least this selects the ffmpeg
decoder, which seems to work fine*/
m
->
base
.
mime
=
g_strdup
(
"audio/x-ms-wma"
);
...
...
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