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
8cbdc266
Commit
8cbdc266
authored
Nov 08, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder: removed "plugin" from the decoder struct
decoder.plugin was a write-only attribute.
parent
343a8a20
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
6 deletions
+0
-6
decoder_internal.h
src/decoder_internal.h
+0
-2
decoder_thread.c
src/decoder_thread.c
+0
-4
No files found.
src/decoder_internal.h
View file @
8cbdc266
...
...
@@ -23,8 +23,6 @@
#include "pcm_utils.h"
struct
decoder
{
const
struct
decoder_plugin
*
plugin
;
struct
pcm_convert_state
conv_state
;
bool
seeking
;
...
...
src/decoder_thread.c
View file @
8cbdc266
...
...
@@ -123,7 +123,6 @@ static void decoder_run(void)
continue
;
if
(
!
decoder_try_decode
(
plugin
,
&
input_stream
))
continue
;
decoder
.
plugin
=
plugin
;
ret
=
plugin
->
stream_decode
(
&
decoder
,
&
input_stream
);
break
;
...
...
@@ -136,7 +135,6 @@ static void decoder_run(void)
/* we already know our mp3Plugin supports streams, no
* need to check for stream{Types,DecodeFunc} */
if
((
plugin
=
decoder_plugin_from_name
(
"mp3"
)))
{
decoder
.
plugin
=
plugin
;
ret
=
plugin
->
stream_decode
(
&
decoder
,
&
input_stream
);
}
...
...
@@ -151,11 +149,9 @@ static void decoder_run(void)
if
(
plugin
->
file_decode
!=
NULL
)
{
input_stream_close
(
&
input_stream
);
close_instream
=
false
;
decoder
.
plugin
=
plugin
;
ret
=
plugin
->
file_decode
(
&
decoder
,
uri
);
break
;
}
else
if
(
plugin
->
stream_decode
!=
NULL
)
{
decoder
.
plugin
=
plugin
;
ret
=
plugin
->
stream_decode
(
&
decoder
,
&
input_stream
);
break
;
...
...
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