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
d80260ab
Commit
d80260ab
authored
Aug 26, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wavpack: added InputStreamPlus.decoder
The "decoder" object reference will be used by another patch.
parent
a1b430cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
wavpack_plugin.c
src/inputPlugins/wavpack_plugin.c
+7
-4
No files found.
src/inputPlugins/wavpack_plugin.c
View file @
d80260ab
...
...
@@ -340,6 +340,7 @@ static MpdTag *wavpack_tagdup(char *fname)
/* This struct is needed for per-stream last_byte storage. */
typedef
struct
{
struct
decoder
*
decoder
;
InputStream
*
is
;
/* Needed for push_back_byte() */
int
last_byte
;
...
...
@@ -403,8 +404,10 @@ static WavpackStreamReader mpd_is_reader = {
};
static
void
initInputStreamPlus
(
InputStreamPlus
*
isp
,
InputStream
*
is
)
initInputStreamPlus
(
InputStreamPlus
*
isp
,
struct
decoder
*
decoder
,
InputStream
*
is
)
{
isp
->
decoder
=
decoder
;
isp
->
is
=
is
;
isp
->
last_byte
=
EOF
;
}
...
...
@@ -418,7 +421,7 @@ static unsigned int wavpack_trydecode(InputStream *is)
WavpackContext
*
wpc
;
InputStreamPlus
isp
;
initInputStreamPlus
(
&
isp
,
is
);
initInputStreamPlus
(
&
isp
,
NULL
,
is
);
wpc
=
WavpackOpenFileInputEx
(
&
mpd_is_reader
,
&
isp
,
NULL
,
error
,
OPEN_STREAMING
,
0
);
if
(
wpc
==
NULL
)
...
...
@@ -520,11 +523,11 @@ static int wavpack_streamdecode(struct decoder * decoder, InputStream *is)
free
(
wvc_url
);
wvc_url
=
NULL
;
}
else
{
initInputStreamPlus
(
&
isp_wvc
,
&
is_wvc
);
initInputStreamPlus
(
&
isp_wvc
,
decoder
,
&
is_wvc
);
}
}
initInputStreamPlus
(
&
isp
,
is
);
initInputStreamPlus
(
&
isp
,
decoder
,
is
);
wpc
=
WavpackOpenFileInputEx
(
&
mpd_is_reader
,
&
isp
,
&
isp_wvc
,
error
,
open_flags
,
15
);
...
...
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