Mailing List archive

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

[linux-dvb] Re: Fw: Opening the default .dvbrc file



Pete Martin wrote:
I posted this patch before Christmas, but it does not appear to have been
incorporated into the latest CVS. Any chance of adding it? This is required
for gcc 3.2.
Please send a unified diff (diff -pu), thats readable.

Holger


Pete

Original message:

There appears to be a problem in DVB.cc::get_dvbrc()  when it tries to
open

the default .dvbrc file. If the initial open fails, then after the
ifstream

will have ios::failbit set. The second open will not clear this bit (at
least using linux Mandrake 9.0, which uses gcc 3.2) so the second open()
will also fail. It appears that libstdc++ has changed for gcc v3.x.

Insert the following code before the second dvbin.open() call, which will
clear all error bits.
dvbin.clear();

2233c2233
<                    dvbin.clear();
---


Regards

Pete Martin






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



Home | Main Index | Thread Index