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
81d2076b
Commit
81d2076b
authored
Nov 11, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oggflac: removed the obsolete try_decode() method
parent
9eed4191
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
oggflac_plugin.c
src/decoder/oggflac_plugin.c
+3
-6
No files found.
src/decoder/oggflac_plugin.c
View file @
81d2076b
...
@@ -279,17 +279,15 @@ static struct tag *oggflac_TagDup(const char *file)
...
@@ -279,17 +279,15 @@ static struct tag *oggflac_TagDup(const char *file)
return
data
.
tag
;
return
data
.
tag
;
}
}
static
bool
oggflac_try_decode
(
struct
input_stream
*
inStream
)
{
return
ogg_stream_type_detect
(
inStream
)
==
FLAC
;
}
static
void
static
void
oggflac_decode
(
struct
decoder
*
mpd_decoder
,
struct
input_stream
*
inStream
)
oggflac_decode
(
struct
decoder
*
mpd_decoder
,
struct
input_stream
*
inStream
)
{
{
OggFLAC__SeekableStreamDecoder
*
decoder
=
NULL
;
OggFLAC__SeekableStreamDecoder
*
decoder
=
NULL
;
FlacData
data
;
FlacData
data
;
if
(
ogg_stream_type_detect
(
inStream
)
!=
FLAC
)
return
;
init_FlacData
(
&
data
,
mpd_decoder
,
inStream
);
init_FlacData
(
&
data
,
mpd_decoder
,
inStream
);
if
(
!
(
decoder
=
full_decoder_init_and_read_metadata
(
&
data
,
0
)))
{
if
(
!
(
decoder
=
full_decoder_init_and_read_metadata
(
&
data
,
0
)))
{
...
@@ -339,7 +337,6 @@ static const char *const oggflac_mime_types[] = {
...
@@ -339,7 +337,6 @@ static const char *const oggflac_mime_types[] = {
const
struct
decoder_plugin
oggflacPlugin
=
{
const
struct
decoder_plugin
oggflacPlugin
=
{
.
name
=
"oggflac"
,
.
name
=
"oggflac"
,
.
try_decode
=
oggflac_try_decode
,
.
stream_decode
=
oggflac_decode
,
.
stream_decode
=
oggflac_decode
,
.
tag_dup
=
oggflac_TagDup
,
.
tag_dup
=
oggflac_TagDup
,
.
suffixes
=
oggflac_Suffixes
,
.
suffixes
=
oggflac_Suffixes
,
...
...
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