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
ffabf8b0
Commit
ffabf8b0
authored
Jan 04, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DecoderInternal: move initializers to constructor
parent
e9b71a0d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
13 deletions
+10
-13
DecoderInternal.hxx
src/DecoderInternal.hxx
+7
-4
DecoderThread.cxx
src/DecoderThread.cxx
+3
-9
No files found.
src/DecoderInternal.hxx
View file @
ffabf8b0
...
@@ -81,12 +81,15 @@ struct decoder {
...
@@ -81,12 +81,15 @@ struct decoder {
*/
*/
unsigned
replay_gain_serial
;
unsigned
replay_gain_serial
;
#ifdef __cplusplus
decoder
(
decoder_control
*
_dc
,
bool
_initial_seek_pending
,
decoder
(
decoder_control
*
_dc
,
bool
_initial_seek_pendin
g
)
struct
tag
*
_ta
g
)
:
dc
(
_dc
),
:
dc
(
_dc
),
timestamp
(
0
),
initial_seek_pending
(
_initial_seek_pending
),
initial_seek_pending
(
_initial_seek_pending
),
initial_seek_running
(
false
)
{}
initial_seek_running
(
false
),
#endif
seeking
(
false
),
song_tag
(
_tag
),
stream_tag
(
nullptr
),
decoder_tag
(
nullptr
),
chunk
(
nullptr
)
{}
};
};
/**
/**
...
...
src/DecoderThread.cxx
View file @
ffabf8b0
...
@@ -380,17 +380,11 @@ static void
...
@@ -380,17 +380,11 @@ static void
decoder_run_song
(
struct
decoder_control
*
dc
,
decoder_run_song
(
struct
decoder_control
*
dc
,
const
struct
song
*
song
,
const
char
*
uri
)
const
struct
song
*
song
,
const
char
*
uri
)
{
{
decoder
decoder
(
dc
,
dc
->
start_ms
>
0
);
decoder
decoder
(
dc
,
dc
->
start_ms
>
0
,
song
->
tag
!=
NULL
&&
song_is_file
(
song
)
?
tag_dup
(
song
->
tag
)
:
nullptr
);
int
ret
;
int
ret
;
decoder
.
timestamp
=
0.0
;
decoder
.
seeking
=
false
;
decoder
.
song_tag
=
song
->
tag
!=
NULL
&&
song_is_file
(
song
)
?
tag_dup
(
song
->
tag
)
:
NULL
;
decoder
.
stream_tag
=
NULL
;
decoder
.
decoder_tag
=
NULL
;
decoder
.
chunk
=
NULL
;
dc
->
state
=
DECODE_STATE_START
;
dc
->
state
=
DECODE_STATE_START
;
decoder_command_finished_locked
(
dc
);
decoder_command_finished_locked
(
dc
);
...
...
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