summaryrefslogtreecommitdiff
path: root/apps/playback.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/playback.c')
-rw-r--r--apps/playback.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 2fbc4a85a1..2775e8a95b 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -1716,6 +1716,17 @@ static int audio_finish_load_track(struct track_info *info)
1716 } 1716 }
1717#endif 1717#endif
1718 1718
1719 /* All handles available to external routines are ready - audio and codec
1720 information is private */
1721
1722 if (info == track_list_user_current(0))
1723 {
1724 /* Send only when the track handles could not all be opened ahead of
1725 time for the user's current track - otherwise everything is ready
1726 by the time PLAYBACK_EVENT_TRACK_CHANGE is sent */
1727 send_event(PLAYBACK_EVENT_CUR_TRACK_READY, id3_get(PLAYING_ID3));
1728 }
1729
1719#ifdef HAVE_CODEC_BUFFERING 1730#ifdef HAVE_CODEC_BUFFERING
1720 /* Try to buffer a codec for the track */ 1731 /* Try to buffer a codec for the track */
1721 if (info != cur_info && !audio_buffer_codec(info, track_id3)) 1732 if (info != cur_info && !audio_buffer_codec(info, track_id3))