rage dir scan - include files of no mime in case mime db is not there

This commit is contained in:
Carsten Haitzler 2020-08-22 18:05:18 +01:00
parent 6875aabc27
commit d8d4b76a69
1 changed files with 3 additions and 1 deletions

View File

@ -125,7 +125,9 @@ _cb_feedback_recursion(void *data, Ecore_Thread *thread EINA_UNUSED, void *msg)
EINA_LIST_FREE(list, path)
{
mime = efreet_mime_type_get(path);
if (!strncmp(mime, "audio/", 6) || !strncmp(mime, "video/", 6))
if ((!mime) ||
(!strncmp(mime, "audio/", 6)) ||
(!strncmp(mime, "video/", 6)))
{
update_content = EINA_TRUE;
win_list_hide(recursion->win);