Disable support for embedded artwork (groups) for now - it's too slow

This commit is contained in:
ejurgensen 2014-01-11 00:35:35 +01:00
parent 4e8f60c932
commit 77893f5521

View File

@ -1078,8 +1078,10 @@ artwork_get_group(int id, int max_w, int max_h, int format, struct evbuffer *evb
while (!got_art && ((ret = db_query_fetch_file(&qp, &dbmfi)) == 0) && (dbmfi.id)) while (!got_art && ((ret = db_query_fetch_file(&qp, &dbmfi)) == 0) && (dbmfi.id))
{ {
#if LIBAVFORMAT_VERSION_MAJOR >= 55 || (LIBAVFORMAT_VERSION_MAJOR == 54 && LIBAVFORMAT_VERSION_MINOR >= 20) #if LIBAVFORMAT_VERSION_MAJOR >= 55 || (LIBAVFORMAT_VERSION_MAJOR == 54 && LIBAVFORMAT_VERSION_MINOR >= 20)
got_art = (artwork_get_embedded_image(dbmfi.path, max_w, max_h, format, evbuf) > 0) /* Searching for embedded artwork disabled, not good for performance */
|| (artwork_get_own_image(dbmfi.path, max_w, max_h, format, evbuf) > 0); /* got_art = (artwork_get_embedded_image(dbmfi.path, max_w, max_h, format, evbuf) > 0)
|| (artwork_get_own_image(dbmfi.path, max_w, max_h, format, evbuf) > 0);*/
got_art = (artwork_get_own_image(dbmfi.path, max_w, max_h, format, evbuf) > 0);
#else #else
got_art = (artwork_get_own_image(dbmfi.path, max_w, max_h, format, evbuf) > 0); got_art = (artwork_get_own_image(dbmfi.path, max_w, max_h, format, evbuf) > 0);
#endif #endif