From 4e30d5ded6a22199bd3bf2349b5ac36c09d98a47 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sat, 25 Jan 2014 20:23:51 +0100 Subject: [PATCH] triple: hack cDemux::GetSource() --- libtriple/dmx_td.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/libtriple/dmx_td.cpp b/libtriple/dmx_td.cpp index c2d7ced..d739277 100644 --- a/libtriple/dmx_td.cpp +++ b/libtriple/dmx_td.cpp @@ -1,7 +1,7 @@ /* * cDemux implementation for the Tripledragon dbs3000 receiver * - * (C) 2010-2013 Stefan Seyfried + * (C) 2010-2014 Stefan Seyfried * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -655,7 +655,16 @@ bool cDemux::SetSource(int /*unit*/, int /*source*/) return true; }; -int cDemux::GetSource(int /*unit*/) +int cDemux::GetSource(int unit) { + /* hackedy hack :-) */ + /* + * GetSource is only used for pes_type == DMX_TP_CHANNEL, VIDEO_CHANNEL and AUDIO_CHANNEL + * for VIDEO / AUDIO, demux is always 0 and for DMX_TP, it is 1 for record and stream. + * At least I hope so :-) + * (the value of GetSource is used for selecting the demux dev on which to descramble) + */ + if (unit == 1) + return 1; return 0; };