InputStream: convert to class
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
#include <stdint.h>
|
||||
|
||||
struct Decoder;
|
||||
struct InputStream;
|
||||
class InputStream;
|
||||
|
||||
struct DsdId {
|
||||
char value[4];
|
||||
|
@@ -385,7 +385,7 @@ ffmpeg_probe(Decoder *decoder, InputStream &is)
|
||||
AVProbeData avpd;
|
||||
avpd.buf = buffer;
|
||||
avpd.buf_size = nbytes;
|
||||
avpd.filename = is.uri.c_str();
|
||||
avpd.filename = is.GetURI();
|
||||
|
||||
return av_probe_input_format(&avpd, true);
|
||||
}
|
||||
@@ -409,7 +409,7 @@ ffmpeg_decode(Decoder &decoder, InputStream &input)
|
||||
//ffmpeg works with ours "fileops" helper
|
||||
AVFormatContext *format_context = nullptr;
|
||||
if (mpd_ffmpeg_open_input(&format_context, stream.io,
|
||||
input.uri.c_str(),
|
||||
input.GetURI(),
|
||||
input_format) != 0) {
|
||||
LogError(ffmpeg_domain, "Open failed");
|
||||
return;
|
||||
@@ -558,7 +558,7 @@ ffmpeg_scan_stream(InputStream &is,
|
||||
return false;
|
||||
|
||||
AVFormatContext *f = nullptr;
|
||||
if (mpd_ffmpeg_open_input(&f, stream.io, is.uri.c_str(),
|
||||
if (mpd_ffmpeg_open_input(&f, stream.io, is.GetURI(),
|
||||
input_format) != 0)
|
||||
return false;
|
||||
|
||||
|
@@ -23,7 +23,7 @@
|
||||
#include <FLAC/stream_decoder.h>
|
||||
|
||||
struct Decoder;
|
||||
struct InputStream;
|
||||
class InputStream;
|
||||
|
||||
/**
|
||||
* This class wraps an #InputStream in libFLAC stream decoder
|
||||
|
@@ -25,7 +25,7 @@
|
||||
#define MPD_OGG_CODEC_HXX
|
||||
|
||||
struct Decoder;
|
||||
struct InputStream;
|
||||
class InputStream;
|
||||
|
||||
enum ogg_codec {
|
||||
OGG_CODEC_UNKNOWN,
|
||||
|
@@ -26,7 +26,7 @@
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
struct InputStream;
|
||||
class InputStream;
|
||||
struct Decoder;
|
||||
|
||||
/**
|
||||
|
@@ -487,7 +487,7 @@ wavpack_streamdecode(Decoder &decoder, InputStream &is)
|
||||
bool can_seek = is.seekable;
|
||||
|
||||
wavpack_input isp_wvc;
|
||||
InputStream *is_wvc = wavpack_open_wvc(decoder, is.uri.c_str(),
|
||||
InputStream *is_wvc = wavpack_open_wvc(decoder, is.GetURI(),
|
||||
is.mutex, is.cond,
|
||||
&isp_wvc);
|
||||
if (is_wvc != nullptr) {
|
||||
|
Reference in New Issue
Block a user