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
28fc1d55
Commit
28fc1d55
authored
Apr 05, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/Thread: eliminate decoder_input_stream_open()
parent
ac74f284
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
Thread.cxx
src/decoder/Thread.cxx
+1
-11
No files found.
src/decoder/Thread.cxx
View file @
28fc1d55
...
...
@@ -47,16 +47,6 @@
static
constexpr
Domain
decoder_thread_domain
(
"decoder_thread"
);
static
InputStreamPtr
decoder_input_stream_open
(
DecoderControl
&
dc
,
Path
path
)
{
auto
is
=
OpenLocalInputStream
(
path
,
dc
.
mutex
);
assert
(
is
->
IsReady
());
return
is
;
}
/**
* Decode a stream with the given decoder plugin.
*
...
...
@@ -351,7 +341,7 @@ decoder_run_file(DecoderBridge &bridge, const char *uri_utf8, Path path_fs)
InputStreamPtr
input_stream
;
try
{
input_stream
=
decoder_input_stream_open
(
bridge
.
dc
,
path_fs
);
input_stream
=
OpenLocalInputStream
(
path_fs
,
bridge
.
dc
.
mutex
);
}
catch
(
const
std
::
system_error
&
e
)
{
if
(
IsPathNotFound
(
e
)
&&
/* ENOTDIR means this may be a path inside a
...
...
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