Mailing List archive

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

[linux-dvb] Re: Any need for gszap?



Niklas Peinecke wrote:
Holger Waechtler wrote:

Niklas Peinecke wrote:

Hi,

I've seen the EOF problem also. I got the impression that it is speed related, i.e. if there is heavy load on the machine EOF occurs more frequently. Nevertheless if you pipe the stream to a file and then replay, there are no problems. Maybe the driver replays values <0 through /dev/dvb/adapter0/dvr0 (don't know if this is possible)?


no, it's not. You get the raw unmodified data from air through the dvr device. Data is only lost in case of buffer overflows, but the MPEG decoder should be able to tolerate corrupted MPEG packets silently.

Holger



Yes, but in which cases would there be an EOF generated when reading from a _device_? When there is no data (written by the driver) then mplayer should just stop and wait for data instead of exiting and reproting end of file.
You should not get an EOF when the file is opened in blocked mode. If opened non-blocking you need to use select() or poll() to check whether data is available before you start reading from the file descriptor.

Holger



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



Home | Main Index | Thread Index