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
ab24e203
Commit
ab24e203
authored
Nov 09, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wavpack: removed try_decode() method
Wavpack's try_decode() implementation does nothing useful, it only duplicates code already in stream_decode() / file_decode(), and slows down MPD.
parent
b054ad0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
23 deletions
+0
-23
wavpack_plugin.c
src/decoder/wavpack_plugin.c
+0
-23
No files found.
src/decoder/wavpack_plugin.c
View file @
ab24e203
...
...
@@ -447,28 +447,6 @@ wavpack_input_init(struct wavpack_input *isp, struct decoder *decoder,
isp
->
last_byte
=
EOF
;
}
/*
* Tries to decode the specified stream, and gives true if managed to do it.
*/
static
bool
wavpack_trydecode
(
struct
input_stream
*
is
)
{
char
error
[
ERRORLEN
];
WavpackContext
*
wpc
;
struct
wavpack_input
isp
;
wavpack_input_init
(
&
isp
,
NULL
,
is
);
wpc
=
WavpackOpenFileInputEx
(
&
mpd_is_reader
,
&
isp
,
NULL
,
error
,
OPEN_STREAMING
,
0
);
if
(
wpc
==
NULL
)
{
return
false
;
}
WavpackCloseFile
(
wpc
);
return
true
;
}
static
bool
wavpack_open_wvc
(
struct
decoder
*
decoder
,
struct
input_stream
*
is_wvc
,
struct
wavpack_input
*
wpi
)
...
...
@@ -588,7 +566,6 @@ static char const *const wavpack_mime_types[] = { "audio/x-wavpack", NULL };
const
struct
decoder_plugin
wavpack_plugin
=
{
.
name
=
"wavpack"
,
.
try_decode
=
wavpack_trydecode
,
.
stream_decode
=
wavpack_streamdecode
,
.
file_decode
=
wavpack_filedecode
,
.
tag_dup
=
wavpack_tagdup
,
...
...
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