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
ee6e0e16
Commit
ee6e0e16
authored
Jan 31, 2015
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DecoderThread: make variables more local
parent
eb173360
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
DecoderThread.cxx
src/decoder/DecoderThread.cxx
+3
-6
No files found.
src/decoder/DecoderThread.cxx
View file @
ee6e0e16
...
...
@@ -267,12 +267,10 @@ static bool
decoder_run_stream
(
Decoder
&
decoder
,
const
char
*
uri
)
{
DecoderControl
&
dc
=
decoder
.
dc
;
InputStream
*
input_stream
;
bool
success
;
dc
.
Unlock
();
input_stream
=
decoder_input_stream_open
(
dc
,
uri
);
InputStream
*
input_stream
=
decoder_input_stream_open
(
dc
,
uri
);
if
(
input_stream
==
nullptr
)
{
dc
.
Lock
();
return
false
;
...
...
@@ -281,7 +279,7 @@ decoder_run_stream(Decoder &decoder, const char *uri)
dc
.
Lock
();
bool
tried
=
false
;
success
=
dc
.
command
==
DecoderCommand
::
STOP
||
const
bool
success
=
dc
.
command
==
DecoderCommand
::
STOP
||
decoder_run_stream_locked
(
decoder
,
*
input_stream
,
uri
,
tried
)
||
/* fallback to mp3: this is needed for bastard streams
...
...
@@ -381,13 +379,12 @@ decoder_run_song(DecoderControl &dc,
{
Decoder
decoder
(
dc
,
dc
.
start_time
.
IsPositive
(),
new
Tag
(
song
.
GetTag
()));
int
ret
;
dc
.
state
=
DecoderState
::
START
;
decoder_command_finished_locked
(
dc
);
ret
=
!
path_fs
.
IsNull
()
const
int
ret
=
!
path_fs
.
IsNull
()
?
decoder_run_file
(
decoder
,
uri
,
path_fs
)
:
decoder_run_stream
(
decoder
,
uri
);
...
...
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