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
2dc5648e
Commit
2dc5648e
authored
Oct 29, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input/CdioParanoia: use StringAfterPrefixIgnoreCase()
parent
d0349880
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
CdioParanoiaInputPlugin.cxx
src/input/plugins/CdioParanoiaInputPlugin.cxx
+4
-6
No files found.
src/input/plugins/CdioParanoiaInputPlugin.cxx
View file @
2dc5648e
...
...
@@ -26,7 +26,7 @@
#include "../InputStream.hxx"
#include "../InputPlugin.hxx"
#include "util/TruncateString.hxx"
#include "util/
ASCII
.hxx"
#include "util/
StringCompare
.hxx"
#include "util/RuntimeError.hxx"
#include "util/Domain.hxx"
#include "system/ByteOrder.hxx"
...
...
@@ -130,11 +130,6 @@ struct cdio_uri {
static
bool
parse_cdio_uri
(
struct
cdio_uri
*
dest
,
const
char
*
src
)
{
if
(
!
StringStartsWithCaseASCII
(
src
,
"cdda://"
))
return
false
;
src
+=
7
;
if
(
*
src
==
0
)
{
/* play the whole CD in the default drive */
dest
->
device
[
0
]
=
0
;
...
...
@@ -188,6 +183,9 @@ static InputStreamPtr
input_cdio_open
(
const
char
*
uri
,
Mutex
&
mutex
)
{
uri
=
StringAfterPrefixIgnoreCase
(
uri
,
"cdda://"
);
assert
(
uri
!=
nullptr
);
struct
cdio_uri
parsed_uri
;
if
(
!
parse_cdio_uri
(
&
parsed_uri
,
uri
))
return
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