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
5719207d
Commit
5719207d
authored
Oct 26, 2015
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gme: don't loop forever, fall back to GME's default play length
Fixes
http://bugs.musicpd.org/view.php?id=4432
parent
a84fbbe3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
NEWS
NEWS
+1
-0
GmeDecoderPlugin.cxx
src/decoder/plugins/GmeDecoderPlugin.cxx
+3
-3
No files found.
NEWS
View file @
5719207d
...
...
@@ -3,6 +3,7 @@ ver 0.19.11 (not yet released)
- ape: fix buffer overflow
* decoder
- ffmpeg: fix crash due to wrong avio_alloc_context() call
- gme: don't loop forever, fall back to GME's default play length
* encoder
- flac: fix crash with 32 bit playback
* mixer
...
...
src/decoder/plugins/GmeDecoderPlugin.cxx
View file @
5719207d
...
...
@@ -156,7 +156,7 @@ gme_file_decode(Decoder &decoder, Path path_fs)
return
;
}
const
int
length
=
ti
->
length
;
const
int
length
=
ti
->
play_
length
;
gme_free_info
(
ti
);
const
SignedSongTime
song_len
=
length
>
0
...
...
@@ -239,9 +239,9 @@ gme_scan_file(Path path_fs,
assert
(
ti
!=
nullptr
);
if
(
ti
->
length
>
0
)
if
(
ti
->
play_
length
>
0
)
tag_handler_invoke_duration
(
handler
,
handler_ctx
,
SongTime
::
FromMS
(
ti
->
length
));
SongTime
::
FromMS
(
ti
->
play_
length
));
if
(
ti
->
song
!=
nullptr
)
{
if
(
gme_track_count
(
emu
)
>
1
)
{
...
...
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