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
67bf4b44
Commit
67bf4b44
authored
Aug 26, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added decoder_get_url()
The wavpack decoder plugin implements a hack, and it needs the song URL for that. This API (and the hack) should be revised later, but add that function for now.
parent
c60209ff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
decoder_api.c
src/decoder_api.c
+5
-0
decoder_api.h
src/decoder_api.h
+2
-0
wavpack_plugin.c
src/inputPlugins/wavpack_plugin.c
+1
-1
No files found.
src/decoder_api.c
View file @
67bf4b44
...
...
@@ -45,6 +45,11 @@ void decoder_initialized(struct decoder * decoder,
notify_signal
(
&
pc
.
notify
);
}
const
char
*
decoder_get_url
(
mpd_unused
struct
decoder
*
decoder
,
char
*
buffer
)
{
return
get_song_url
(
buffer
,
dc
.
current_song
);
}
enum
decoder_command
decoder_get_command
(
mpd_unused
struct
decoder
*
decoder
)
{
return
dc
.
command
;
...
...
src/decoder_api.h
View file @
67bf4b44
...
...
@@ -103,6 +103,8 @@ void decoder_initialized(struct decoder * decoder,
const
AudioFormat
*
audio_format
,
float
total_time
);
const
char
*
decoder_get_url
(
struct
decoder
*
decoder
,
char
*
buffer
);
enum
decoder_command
decoder_get_command
(
struct
decoder
*
decoder
);
/**
...
...
src/inputPlugins/wavpack_plugin.c
View file @
67bf4b44
...
...
@@ -456,7 +456,7 @@ static int wavpack_streamdecode(struct decoder * decoder, InputStream *is)
* As we use dc.utf8url, this function will be bad for
* single files. utf8url is not absolute file path :/
*/
utf8url
=
get_song_url
(
tmp
,
dc
.
current_song
);
utf8url
=
decoder_get_url
(
decoder
,
tmp
);
if
(
utf8url
==
NULL
)
{
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