Switch to unified view

a/src/mediaserver/cdplugins/plgwithslave.cxx b/src/mediaserver/cdplugins/plgwithslave.cxx
...
...
367
        }
367
        }
368
        total++;
368
        total++;
369
        if (stidx > int(i)) {
369
        if (stidx > int(i)) {
370
            continue;
370
            continue;
371
        }
371
        }
372
        if (int(entries.size()) >= cnt) {
372
        if (cnt && int(entries.size()) >= cnt) {
373
            break;
373
            break;
374
        }
374
        }
375
        LOGDEB1("ContentCacheEntry::toResult: pushing class " <<
375
        LOGDEB1("ContentCacheEntry::toResult: pushing class " <<
376
                res[i].upnpClass << " tt " << res[i].title << endl);
376
                res[i].upnpClass << " tt " << res[i].title << endl);
377
        entries.push_back(res[i]);
377
        entries.push_back(res[i]);