summaryrefslogtreecommitdiff
path: root/firmware/mpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/mpeg.c')
-rw-r--r--firmware/mpeg.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c
index 394d6983b6..221c403b49 100644
--- a/firmware/mpeg.c
+++ b/firmware/mpeg.c
@@ -834,10 +834,9 @@ static void transfer_end(unsigned char** ppbuf, int* psize)
space_until_end_of_buffer);
/* several tracks loaded? */
- if (num_tracks_in_memory() > 1)
+ track = get_trackdata(track_offset);
+ if(track)
{
- track = get_trackdata(track_offset);
-
/* will we move across the track boundary? */
if (( audiobuf_read < track->mempos ) &&
((audiobuf_read+last_dma_chunk_size) >