Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: reading two elementary PIDs (Aud and Vid) at once



On Thu, Oct 31, 2002 at 02:44:23PM +1100, Mike Doyle wrote:
> having problems reading two elementary PIDs at once.
... 
> fd = open("/dev/ost/demux",O_RDWR)
> 
> Set up filter: 
> 	pesFilterParams.pid     = pid;
> 	pesFilterParams.input   = DMX_IN_FRONTEND;
> 	pesFilterParams.output  = DMX_OUT_TAP;
>         pesFilterParams.pesType = DMX_PES_OTHER;
> 	pesFilterParams.flags   = DMX_IMMEDIATE_START;
> 
> 	if (ioctl(fd, DMX_SET_PES_FILTER, &pesFilterParams) < 0)  
> 		perror("DMX SET PES FILTER:");
> 
> Doing this twice (on difference FD's of course).
> 
> I then have two different processes, in a loop reading the data like.
> n = read(fd,buffer,sizeof(buffer));

Indeed, you hit a bug which IIRC was once fixed and is now back again.
Easily reproducable with two instances of DVB/apps/test_pes.

Can't remember what is was, though. Ralph was the one who fixed it.


Regards,
Johannes


-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index