From 1df3d2e9461c6a9d1af4335a9ddb7c81e6d213e3 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 29 Jul 2012 13:26:31 +0200 Subject: [PATCH] cDemux: add dummy SetSource() for coolstream compatibiliy --- azbox/dmx.cpp | 7 +++++++ azbox/dmx_lib.h | 1 + libspark/dmx.cpp | 7 +++++++ libspark/dmx_lib.h | 1 + libtriple/dmx_td.h | 2 ++ 5 files changed, 18 insertions(+) diff --git a/azbox/dmx.cpp b/azbox/dmx.cpp index 80d500a..5d05b2a 100644 --- a/azbox/dmx.cpp +++ b/azbox/dmx.cpp @@ -18,6 +18,7 @@ extern cVideo *videoDecoder; #define lt_debug(args...) _lt_debug(TRIPLE_DEBUG_DEMUX, this, args) #define lt_info(args...) _lt_info(TRIPLE_DEBUG_DEMUX, this, args) +#define lt_info_c(args...) _lt_info(TRIPLE_DEBUG_DEMUX, NULL, args) #define dmx_err(_errfmt, _errstr, _revents) do { \ uint16_t _pid = (uint16_t)-1; uint16_t _f = 0;\ @@ -492,3 +493,9 @@ int cDemux::getUnit(void) anyway */ return num; } + +bool cDemux::SetSource(int unit, int source) +{ + lt_info_c("%s(%d, %d): not implemented yet\n", __func__, unit, source); + return true; +} diff --git a/azbox/dmx_lib.h b/azbox/dmx_lib.h index 4c32d6c..ffd293e 100644 --- a/azbox/dmx_lib.h +++ b/azbox/dmx_lib.h @@ -54,6 +54,7 @@ class cDemux bool addPid(unsigned short pid); void getSTC(int64_t * STC); int getUnit(void); + static bool SetSource(int unit, int source); // TD only functions int getFD(void) { return fd; }; /* needed by cPlayback class */ void removePid(unsigned short Pid); /* needed by cRecord class */ diff --git a/libspark/dmx.cpp b/libspark/dmx.cpp index bc5c0c2..7842236 100644 --- a/libspark/dmx.cpp +++ b/libspark/dmx.cpp @@ -17,6 +17,7 @@ extern cVideo *videoDecoder; #define lt_debug(args...) _lt_debug(TRIPLE_DEBUG_DEMUX, this, args) #define lt_info(args...) _lt_info(TRIPLE_DEBUG_DEMUX, this, args) +#define lt_info_c(args...) _lt_info(TRIPLE_DEBUG_DEMUX, NULL, args) #define dmx_err(_errfmt, _errstr, _revents) do { \ uint16_t _pid = (uint16_t)-1; uint16_t _f = 0;\ @@ -549,3 +550,9 @@ int cDemux::getUnit(void) anyway */ return num; } + +bool cDemux::SetSource(int unit, int source) +{ + lt_info_c("%s(%d, %d): not implemented yet\n", __func__, unit, source); + return true; +} diff --git a/libspark/dmx_lib.h b/libspark/dmx_lib.h index 4c32d6c..ffd293e 100644 --- a/libspark/dmx_lib.h +++ b/libspark/dmx_lib.h @@ -54,6 +54,7 @@ class cDemux bool addPid(unsigned short pid); void getSTC(int64_t * STC); int getUnit(void); + static bool SetSource(int unit, int source); // TD only functions int getFD(void) { return fd; }; /* needed by cPlayback class */ void removePid(unsigned short Pid); /* needed by cRecord class */ diff --git a/libtriple/dmx_td.h b/libtriple/dmx_td.h index d2d02bd..2656ca9 100644 --- a/libtriple/dmx_td.h +++ b/libtriple/dmx_td.h @@ -60,6 +60,8 @@ class cDemux bool addPid(unsigned short pid); void getSTC(int64_t * STC); int getUnit(void); + /* tripledragon is unlikely to get a second tuner, so stub it out right here */ + static bool SetSource(int /*unit*/, int /*source*/) { return true; }; // TD only functions int getFD(void) { return fd; }; /* needed by cPlayback class */ void removePid(unsigned short Pid); /* needed by cRecord class */