From c2102ecfb538723918fff3aa530190e691c8aff2 Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Thu, 5 May 2016 17:00:24 +0200 Subject: [PATCH] =?UTF-8?q?Revert=20"(XMB)=20Bugfix=20the=20thumbnail=20di?= =?UTF-8?q?splay.=20And=20prevent=20download=20on=20non=20playl=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- menu/drivers/xmb.c | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index 4ff3961333..a237e3202f 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -770,8 +770,6 @@ static void xmb_update_thumbnail_image(void *data) xmb_handle_t *xmb = (xmb_handle_t*)data; download_t *ud; char buf[PATH_MAX_LENGTH]; - unsigned selection = 0; - menu_entry_t entry; if (!xmb) return; @@ -783,13 +781,6 @@ static void xmb_update_thumbnail_image(void *data) menu_display_handle_thumbnail_upload, NULL); else { - menu_navigation_ctl(MENU_NAVIGATION_CTL_GET_SELECTION, &selection); - - menu_entry_get(&entry, 0, selection, NULL, true); - - if (entry.type != MENU_FILE_RPL_ENTRY) - return; - ud = (download_t *)malloc(sizeof(*ud) + strlen(xmb->thumbnail_file_path)); if (!ud) @@ -2839,16 +2830,12 @@ static void xmb_navigation_set(void *data, bool scroll) xmb_handle_t *xmb = (xmb_handle_t*)data; xmb_selection_pointer_changed(xmb, true); - size_t depth, selection; + size_t selection; if (!menu_navigation_ctl(MENU_NAVIGATION_CTL_GET_SELECTION, &selection)) return; - depth = xmb_list_get_size(xmb, MENU_LIST_PLAIN); - if (strcmp(xmb_thumbnails_ident(), "OFF") && depth == 1) - { - xmb_update_thumbnail_path(xmb, selection); - xmb_update_thumbnail_image(xmb); - } + xmb_update_thumbnail_path(xmb, selection); + xmb_update_thumbnail_image(xmb); } static void xmb_navigation_alphabet(void *data, size_t *unused)