We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4857

Summary: OGG Vorbis: Handle loop tags limit
Product: SDL_mixer Reporter: Vitaly Novichkov <admin>
Component: miscAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: sezeroz
Version: unspecified   
Hardware: x86_64   
OS: Linux   
Attachments: A patch that adds loops count limit handling for looping OGGs

Description Vitaly Novichkov 2019-11-12 09:36:07 UTC
Created attachment 4042 [details]
A patch that adds loops count limit handling for looping OGGs

Some years ago I have fixed OGG looping with using limited loops count. With the current code, the looping OGG file will be played forever even you don't want that. So, with this patch, if you want to loop forever, it will do. However, if you don't want to loop more than X times, it will don't.

https://github.com/WohlSoft/SDL-Mixer-X/commit/a67d8fd0b061c75d3f50f4620a57275df61f3eb4#r35908834
Comment 1 Sam Lantinga 2019-11-17 06:14:15 UTC
Patch added, thanks!
https://hg.libsdl.org/SDL_mixer/rev/e134ad064126
Comment 2 Ozkan Sezer 2019-11-17 07:39:17 UTC
Is something like this needed for the newly added flac loop
support too? (see bug #4855.)