mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Avoiding error message when setting PIDs
This commit is contained in:
parent
5b41d21107
commit
706b18cb7c
5
HISTORY
5
HISTORY
@ -525,3 +525,8 @@ Video Disk Recorder Revision History
|
||||
- Setting all PIDs to 0x1FFF before switching channel.
|
||||
- New setup parameter "VideoFormat" to define the aspect ratio of the tv set
|
||||
in use (4:3 or 16:9).
|
||||
|
||||
2001-06-17: Version 0.83
|
||||
|
||||
- Avoiding "Device or resource busy" error message when setting PIDs.
|
||||
|
||||
|
4
dvbapi.c
4
dvbapi.c
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: dvbapi.c 1.78 2001/06/16 14:38:07 kls Exp $
|
||||
* $Id: dvbapi.c 1.79 2001/06/17 15:18:11 kls Exp $
|
||||
*/
|
||||
|
||||
#include "dvbapi.h"
|
||||
@ -2048,7 +2048,7 @@ bool cDvbApi::SetPid(int fd, dmxPesType_t PesType, dvb_pid_t Pid, dmxOutput_t Ou
|
||||
pesFilterParams.pesType = PesType;
|
||||
pesFilterParams.flags = DMX_IMMEDIATE_START;
|
||||
if (ioctl(fd, DMX_SET_PES_FILTER, &pesFilterParams) < 0) {
|
||||
if (Pid != 0x1FFF)
|
||||
if (Pid != 0 && Pid != 0x1FFF)
|
||||
LOG_ERROR;
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user