raster pushed a commit to branch master.

http://git.enlightenment.org/apps/rage.git/commit/?id=d8d4b76a69db0478c1ca50fb5b606bb31e73376e

commit d8d4b76a69db0478c1ca50fb5b606bb31e73376e
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Sat Aug 22 18:05:18 2020 +0100

    rage dir scan - include files of no mime in case mime db is not there
---
 src/bin/main.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/bin/main.c b/src/bin/main.c
index 3313a7c..b7a67ec 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -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);

-- 


Reply via email to