[mythtv] dvbrecorder.cpp

Kristian Kalweit kalweit at exorpro.de
Wed Jan 26 03:36:39 EST 2005


Kristian Kalweit schrieb:

>>> please don't confiscate my computer, but I have to change
>>> dvbrecorder.cpp to get libmythtv compiling:
>>>
>>> SetOption("tvformat", gContext->GetSetting("TVFormat"));
>>>
>>> into
>>>
>>> SetOption("tvformat", gContext->GetNumSetting("TVFormat"));
>>>   
>>
>>
>> Doesn't make sense.  It's a string setting, not a number.
>>
>> Isaac
>>  
>>
After looking in the code I think

SetOption("tvformat", gContext->GetSetting("TVFormat"));

have to be changed to

DTVRecorder::SetOption("tvformat", gContext->GetSetting("TVFormat"));

because DTVRecorder::SetOption accepts a String as value. 
DTVRecorder::SetOption is called by DVBRecorder::SetOption which only 
accepting int.

Kristian.


More information about the mythtv-dev mailing list