Rockbox

Tasklist

FS#8053 - playback.c simplification by removal of last_track argument in track_(un)buffer callback

Attached to Project: Rockbox
Opened by Bertrik Sikken (bertrik) - Tuesday, 30 October 2007, 21:02 GMT
Last edited by Nicolas Pennequin (nicolas_p) - Wednesday, 31 October 2007, 13:44 GMT
Task Type Patches
Category Music playback
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

This patch simplifies playback.c a bit by removing the last_track argument from track_buffer_callback and track_unbuffer_callback in playback.c and mpeg.c. The last_track argument is no longer used anywhere.

Removal of the argument allows further simplification of functions audio_clear_track_entries and audio_generate_postbuffer_events in playback.c by removing the need for special handling of the last track entry.
This task depends upon

Closed by  Nicolas Pennequin (nicolas_p)
Wednesday, 31 October 2007, 13:44 GMT
Reason for closing:  Accepted
Additional comments about closing:  Thanks!
Comment by Bertrik Sikken (bertrik) - Tuesday, 30 October 2007, 21:36 GMT
Attached patch (against 15380) does further simplification in mpeg.c, made possible by the removal of the last_track argument.

Loading...