--- a/src/mediaserver/cdplugins/plgwithslave.cxx
+++ b/src/mediaserver/cdplugins/plgwithslave.cxx
@@ -376,7 +376,7 @@
                 res[i].upnpClass << " tt " << res[i].title << endl);
         entries.push_back(res[i]);
     }
-    return total;
+    return res.size();
 }
 
 class ContentCache {