| 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) && |
no test coverage detected