MCPcopy Create free account
hub / github.com/MusicPlayerDaemon/MPD / ScanStream

Method ScanStream

src/TagFile.cxx:36–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 }
35
36 bool ScanStream(const DecoderPlugin &plugin) {
37 if (plugin.scan_stream == nullptr)
38 return false;
39
40 /* open the InputStream (if not already open) */
41 if (is == nullptr) {
42 is = OpenLocalInputStream(path_fs, mutex);
43 } else {
44 is->LockRewind();
45 }
46
47 /* now try the stream_tag() method */
48 return plugin.ScanStream(*is, handler);
49 }
50
51 bool Scan(const DecoderPlugin &plugin) {
52 return plugin.SupportsSuffix(suffix) &&

Callers 2

mainFunction · 0.80
tag_stream_scanFunction · 0.80

Calls 1

OpenLocalInputStreamFunction · 0.85

Tested by

no test coverage detected