mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Avoiding an unnecessary stop of an ongoing Transfer Mode when starting a recording on the primary device
This commit is contained in:
parent
056c902c21
commit
00170e8275
2
HISTORY
2
HISTORY
@ -2327,3 +2327,5 @@ Video Disk Recorder Revision History
|
|||||||
- Fixed a bug in resetting OSD color palettes (thanks to Torsten Herz).
|
- Fixed a bug in resetting OSD color palettes (thanks to Torsten Herz).
|
||||||
- Fixed starting a recording on the primary device if there is a replay session
|
- Fixed starting a recording on the primary device if there is a replay session
|
||||||
active (thanks to Javier Marcet for reporting this one).
|
active (thanks to Javier Marcet for reporting this one).
|
||||||
|
- Avoiding an unnecessary stop of an ongoing Transfer Mode when starting a
|
||||||
|
recording on the primary device.
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: dvbdevice.c 1.61 2003/08/15 13:03:41 kls Exp $
|
* $Id: dvbdevice.c 1.62 2003/08/24 14:49:53 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "dvbdevice.h"
|
#include "dvbdevice.h"
|
||||||
@ -613,13 +613,12 @@ bool cDvbDevice::ProvidesChannel(const cChannel *Channel, int Priority, bool *Ne
|
|||||||
{
|
{
|
||||||
bool result = false;
|
bool result = false;
|
||||||
bool hasPriority = Priority < 0 || Priority > this->Priority();
|
bool hasPriority = Priority < 0 || Priority > this->Priority();
|
||||||
bool needsDetachReceivers = true;
|
bool needsDetachReceivers = false;
|
||||||
|
|
||||||
if (ProvidesSource(Channel->Source()) && ProvidesCa(Channel->Ca())) {
|
if (ProvidesSource(Channel->Source()) && ProvidesCa(Channel->Ca())) {
|
||||||
result = hasPriority;
|
result = hasPriority;
|
||||||
if (Receiving()) {
|
if (Receiving()) {
|
||||||
if (dvbTuner->IsTunedTo(Channel)) {
|
if (dvbTuner->IsTunedTo(Channel)) {
|
||||||
needsDetachReceivers = false;
|
|
||||||
if (!HasPid(Channel->Vpid())) {
|
if (!HasPid(Channel->Vpid())) {
|
||||||
#ifdef DO_MULTIPLE_RECORDINGS
|
#ifdef DO_MULTIPLE_RECORDINGS
|
||||||
if (Channel->Ca() > CACONFBASE)
|
if (Channel->Ca() > CACONFBASE)
|
||||||
@ -636,6 +635,8 @@ bool cDvbDevice::ProvidesChannel(const cChannel *Channel, int Priority, bool *Ne
|
|||||||
else
|
else
|
||||||
result = !IsPrimaryDevice() || Priority >= Setup.PrimaryLimit;
|
result = !IsPrimaryDevice() || Priority >= Setup.PrimaryLimit;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
needsDetachReceivers = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (NeedsDetachReceivers)
|
if (NeedsDetachReceivers)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user