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
32b5654a
Commit
32b5654a
authored
Nov 01, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Decoder, Playlist: ignore URI query string for plugin detection
Use the new uri_get_suffix() overload that removes the query string.
parent
67409142
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
NEWS
NEWS
+1
-0
DecoderThread.cxx
src/DecoderThread.cxx
+2
-1
PlaylistRegistry.cxx
src/PlaylistRegistry.cxx
+6
-5
No files found.
NEWS
View file @
32b5654a
...
...
@@ -3,6 +3,7 @@ ver 0.18.17 (not yet released)
- don't allow empty playlist name
- m3u: recognize the file suffix ".m3u8"
* decoder
- ignore URI query string for plugin detection
- faad: remove workaround for ancient libfaad2 ABI bug
- ffmpeg: recognize MIME type audio/aacp
...
...
src/DecoderThread.cxx
View file @
32b5654a
...
...
@@ -212,7 +212,8 @@ static bool
decoder_run_stream_locked
(
Decoder
&
decoder
,
InputStream
&
is
,
const
char
*
uri
,
bool
&
tried_r
)
{
const
char
*
const
suffix
=
uri_get_suffix
(
uri
);
UriSuffixBuffer
suffix_buffer
;
const
char
*
const
suffix
=
uri_get_suffix
(
uri
,
suffix_buffer
);
using
namespace
std
::
placeholders
;
const
auto
f
=
std
::
bind
(
decoder_run_stream_plugin
,
...
...
src/PlaylistRegistry.cxx
View file @
32b5654a
...
...
@@ -164,12 +164,12 @@ static SongEnumerator *
playlist_list_open_uri_suffix
(
const
char
*
uri
,
Mutex
&
mutex
,
Cond
&
cond
,
const
bool
*
tried
)
{
const
char
*
suffix
;
SongEnumerator
*
playlist
=
nullptr
;
assert
(
uri
!=
nullptr
);
suffix
=
uri_get_suffix
(
uri
);
UriSuffixBuffer
suffix_buffer
;
const
char
*
const
suffix
=
uri_get_suffix
(
uri
,
suffix_buffer
);
if
(
suffix
==
nullptr
)
return
nullptr
;
...
...
@@ -273,8 +273,6 @@ playlist_list_open_stream_suffix(InputStream &is, const char *suffix)
SongEnumerator
*
playlist_list_open_stream
(
InputStream
&
is
,
const
char
*
uri
)
{
const
char
*
suffix
;
is
.
LockWaitReady
();
const
char
*
const
mime
=
is
.
GetMimeType
();
...
...
@@ -284,7 +282,10 @@ playlist_list_open_stream(InputStream &is, const char *uri)
return
playlist
;
}
suffix
=
uri
!=
nullptr
?
uri_get_suffix
(
uri
)
:
nullptr
;
UriSuffixBuffer
suffix_buffer
;
const
char
*
suffix
=
uri
!=
nullptr
?
uri_get_suffix
(
uri
,
suffix_buffer
)
:
nullptr
;
if
(
suffix
!=
nullptr
)
{
auto
playlist
=
playlist_list_open_stream_suffix
(
is
,
suffix
);
if
(
playlist
!=
nullptr
)
...
...
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