From 5b08f1a5b99136ef052b6f430b62bc618cd44946 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sat, 30 Aug 2014 11:28:50 -0400 Subject: Remove I/O priority. It is harmful when used with the new file code. HAVE_IO_PRIORITY was defined for native targets with dircache. It is already effectively disabled for the most part since dircache no longer lowers its thread's I/O priority. It existed primarily for the aforementioned configuration. Change-Id: Ia04935305397ba14df34647c8ea29c2acaea92aa --- apps/playback.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'apps/playback.c') diff --git a/apps/playback.c b/apps/playback.c index efc23306a0..5c2fc7f8ce 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -1560,9 +1560,6 @@ static bool audio_load_cuesheet(struct track_info *info, int hid = ERR_UNSUPPORTED_TYPE; struct cuesheet_file cue_file; -#ifdef HAVE_IO_PRIORITY - buf_back_off_storage(true); -#endif if (look_for_cuesheet_file(track_id3, &cue_file)) { hid = bufalloc(NULL, sizeof (struct cuesheet), TYPE_CUESHEET); @@ -1586,9 +1583,6 @@ static bool audio_load_cuesheet(struct track_info *info, } } -#ifdef HAVE_IO_PRIORITY - buf_back_off_storage(false); -#endif if (hid == ERR_BUFFER_FULL) { logf("buffer is full for now (%s)", __func__); @@ -1627,10 +1621,6 @@ static bool audio_load_albumart(struct track_info *info, memset(&user_data, 0, sizeof(user_data)); user_data.dim = &albumart_slots[i].dim; -#ifdef HAVE_IO_PRIORITY - buf_back_off_storage(true); -#endif - /* We can only decode jpeg for embedded AA */ if (track_id3->has_embedded_albumart && track_id3->albumart.type == AA_TYPE_JPG) { @@ -1651,9 +1641,6 @@ static bool audio_load_albumart(struct track_info *info, } } -#ifdef HAVE_IO_PRIORITY - buf_back_off_storage(false); -#endif if (hid == ERR_BUFFER_FULL) { logf("buffer is full for now (%s)", __func__); -- cgit v1.2.3