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
475ac76a
You need to sign in or sign up before continuing.
Commit
475ac76a
authored
Jul 08, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/flac: late "total_frames" initialization
parent
79d4f867
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
FlacCommon.cxx
src/decoder/plugins/FlacCommon.cxx
+2
-1
FlacCommon.hxx
src/decoder/plugins/FlacCommon.hxx
+2
-0
No files found.
src/decoder/plugins/FlacCommon.cxx
View file @
475ac76a
...
...
@@ -33,7 +33,7 @@ flac_data::flac_data(Decoder &_decoder,
InputStream
&
_input_stream
)
:
FlacInput
(
_input_stream
,
&
_decoder
),
initialized
(
false
),
unsupported
(
false
),
total_frames
(
0
),
position
(
0
),
position
(
0
),
decoder
(
_decoder
),
input_stream
(
_input_stream
)
{
}
...
...
@@ -142,6 +142,7 @@ flac_got_first_frame(struct flac_data *data, const FLAC__FrameHeader *header)
data
->
input_stream
.
IsSeekable
(),
duration
);
data
->
total_frames
=
0
;
/* unkown duration */
data
->
initialized
=
true
;
return
true
;
...
...
src/decoder/plugins/FlacCommon.hxx
View file @
475ac76a
...
...
@@ -56,6 +56,8 @@ struct flac_data : public FlacInput {
/**
* The total number of frames in this song. 0 means unknown.
*
* This attribute is defined if "initialized" is true.
*/
FLAC__uint64
total_frames
;
...
...
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