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
acb0ff1e
Commit
acb0ff1e
authored
Jan 20, 2010
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/wavpack: fixed WVC URI
Pass the current URI to wavpack_open_wvc().
parent
2acad9fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
wavpack_decoder_plugin.c
src/decoder/wavpack_decoder_plugin.c
+5
-4
No files found.
src/decoder/wavpack_decoder_plugin.c
View file @
acb0ff1e
...
...
@@ -463,7 +463,8 @@ wavpack_input_init(struct wavpack_input *isp, struct decoder *decoder,
}
static
struct
input_stream
*
wavpack_open_wvc
(
struct
decoder
*
decoder
,
struct
wavpack_input
*
wpi
)
wavpack_open_wvc
(
struct
decoder
*
decoder
,
const
char
*
uri
,
struct
wavpack_input
*
wpi
)
{
struct
input_stream
*
is_wvc
;
char
*
wvc_url
=
NULL
;
...
...
@@ -474,10 +475,10 @@ wavpack_open_wvc(struct decoder *decoder, struct wavpack_input *wpi)
* As we use dc->utf8url, this function will be bad for
* single files. utf8url is not absolute file path :/
*/
if
(
wpi
->
is
->
uri
==
NULL
)
if
(
uri
==
NULL
)
return
false
;
wvc_url
=
g_strconcat
(
wpi
->
is
->
uri
,
"c"
,
NULL
);
wvc_url
=
g_strconcat
(
uri
,
"c"
,
NULL
);
is_wvc
=
input_stream_open
(
wvc_url
,
NULL
);
g_free
(
wvc_url
);
...
...
@@ -515,7 +516,7 @@ wavpack_streamdecode(struct decoder * decoder, struct input_stream *is)
struct
wavpack_input
isp
,
isp_wvc
;
bool
can_seek
=
is
->
seekable
;
is_wvc
=
wavpack_open_wvc
(
decoder
,
&
isp_wvc
);
is_wvc
=
wavpack_open_wvc
(
decoder
,
is
->
uri
,
&
isp_wvc
);
if
(
is_wvc
!=
NULL
)
{
open_flags
|=
OPEN_WVC
;
can_seek
&=
is_wvc
->
seekable
;
...
...
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