summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2008-03-04 22:35:51 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2008-03-04 22:35:51 +0000
commit0fd6a04eee7984b21fa3fa5f759f84ccccdf68db (patch)
treeb9f940f68f3033c8b3f9784efb0faf24880c47f8
parent1e6d550087d195032495e9648d3c305a1fd80044 (diff)
downloadrockbox-0fd6a04eee7984b21fa3fa5f759f84ccccdf68db.tar.gz
rockbox-0fd6a04eee7984b21fa3fa5f759f84ccccdf68db.zip
Pragmatic fix for FS#8681 (logf breaks scrobbling). The correct fix is a better event mechanism but scrobbling is currently the only track_changed_event consumer so I'll wait til I have more time.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16520 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/playback.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 847fdfae3b..f757f4ae08 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -2595,15 +2595,6 @@ static void audio_thread(void)
2595 } /* end while */ 2595 } /* end while */
2596} 2596}
2597 2597
2598#ifdef ROCKBOX_HAS_LOGF
2599static void audio_test_track_changed_event(struct mp3entry *id3)
2600{
2601 (void)id3;
2602
2603 logf("tce:%s", id3->path);
2604}
2605#endif
2606
2607/* Initialize the audio system - called from init() in main.c. 2598/* Initialize the audio system - called from init() in main.c.
2608 * Last function because of all the references to internal symbols 2599 * Last function because of all the references to internal symbols
2609 */ 2600 */
@@ -2631,10 +2622,6 @@ void audio_init(void)
2631 2622
2632 pcm_init(); 2623 pcm_init();
2633 2624
2634#ifdef ROCKBOX_HAS_LOGF
2635 audio_set_track_changed_event(audio_test_track_changed_event);
2636#endif
2637
2638 /* Initialize codec api. */ 2625 /* Initialize codec api. */
2639 ci.read_filebuf = codec_filebuf_callback; 2626 ci.read_filebuf = codec_filebuf_callback;
2640 ci.pcmbuf_insert = codec_pcmbuf_insert_callback; 2627 ci.pcmbuf_insert = codec_pcmbuf_insert_callback;