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
395aa4e8
Commit
395aa4e8
authored
Nov 02, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder: moved code to decoder_try_decode()
parent
5183d858
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
decoder_thread.c
src/decoder_thread.c
+13
-6
No files found.
src/decoder_thread.c
View file @
395aa4e8
...
...
@@ -28,6 +28,16 @@
#include "log.h"
#include "ls.h"
static
bool
decoder_try_decode
(
const
struct
decoder_plugin
*
plugin
,
struct
input_stream
*
input_stream
)
{
if
(
plugin
->
try_decode
==
NULL
)
return
true
;
return
plugin
->
try_decode
(
input_stream
);
}
static
void
decodeStart
(
void
)
{
struct
song
*
song
=
dc
.
next_song
;
...
...
@@ -91,8 +101,7 @@ static void decodeStart(void)
continue
;
if
(
!
(
plugin
->
stream_types
&
INPUT_PLUGIN_STREAM_URL
))
continue
;
if
(
plugin
->
try_decode
!=
NULL
&&
!
plugin
->
try_decode
(
&
inStream
))
if
(
!
decoder_try_decode
(
plugin
,
&
inStream
))
continue
;
ret
=
plugin
->
stream_decode
(
&
decoder
,
&
inStream
);
break
;
...
...
@@ -108,8 +117,7 @@ static void decodeStart(void)
if
(
!
(
plugin
->
stream_types
&
INPUT_PLUGIN_STREAM_URL
))
continue
;
if
(
plugin
->
try_decode
!=
NULL
&&
!
plugin
->
try_decode
(
&
inStream
))
if
(
!
decoder_try_decode
(
plugin
,
&
inStream
))
continue
;
decoder
.
plugin
=
plugin
;
ret
=
plugin
->
stream_decode
(
&
decoder
,
...
...
@@ -136,8 +144,7 @@ static void decodeStart(void)
if
(
!
plugin
->
stream_types
&
INPUT_PLUGIN_STREAM_FILE
)
continue
;
if
(
plugin
->
try_decode
!=
NULL
&&
!
plugin
->
try_decode
(
&
inStream
))
if
(
!
decoder_try_decode
(
plugin
,
&
inStream
))
continue
;
if
(
plugin
->
file_decode
!=
NULL
)
{
...
...
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