TBS: CI/CAM support and other improvements (7 Viewers)

SLAiNTRAX

Portal Member
December 17, 2012
14
2
32
Home Country
Norway Norway
Spent half an hour figuring out why it wouldn't compile. Turns out I tried master instead of 1.5 trunk :p Was easy to fix though without any C++ knowledge. I only know some PHP.
 

FreakyJ

Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    This can be changed. For anybody that wants to, just try this code:
    https://github.com/MediaPortal/Medi.../CustomDevices/Turbosight/Turbosight.cs#L1234
    I don't know if I get to it today, probably not, but I will try it at the weekend for sure!
    In your code we have:
    // Check whether a CI slot is present.
    _isCiSlotPresent = false;
    int ciAccessProperty = (int)BdaExtensionProperty.CiAccess;
    if (_isUsb)
    {
    ciAccessProperty = (int)UsbBdaExtensionProperty.CiAccess;
    }
    KSPropertySupport support;
    int hr = _propertySet.QuerySupported(_propertySetGuid, ciAccessProperty, out support);
    if (hr != (int)HResult.Severity.Success || support == 0)
    {
    this.LogDebug("Turbosight: device doesn't have a CI slot");
    return false;
    }
    _isCiSlotPresent = true;

    In the reversed code we have:
    public bool IsCiSlotPresent()
    {
    TvLibrary.Log.Log.Debug("Turbosight: is CI slot present", new object[0]);
    string filterName = FilterGraphTools.GetFilterName(this._tunerFilter);
    bool flag = false;
    for (int i = 0; i < TunersWithCiSlots.Length; i++)
    {
    if (filterName.Equals(TunersWithCiSlots))
    {
    flag = true;
    break;
    }
    }
    TvLibrary.Log.Log.Debug("Turbosight: result = {0}", new object[] { flag });
    return flag;
    }
    By the way, why is this public?! should be private to my thinking... anyway I have something to do related to programming :p
    I will report back ;)
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany

    Attachments

    • TVLibrary.rar
      194.1 KB

    jocke4u

    Portal Member
    October 26, 2011
    20
    0
    Hi,

    I have purchased two TBS5880 that I want to use with MediaPortal 1.5.0 but I cannot find the files/pachtes compatible with 1.5.
    Is it compatible?
    Which files do I need?

    Merry Christmas!
     

    jocke4u

    Portal Member
    October 26, 2011
    20
    0
    Damn, sorry :(

    So your attached TVLibrary.dll should be used instead of the one in tbs.rar (linked above)?
    I will install and test thanks!
     

    AberDino

    MP Donator
  • Premium Supporter
  • February 17, 2005
    247
    34
    Kincardineshire
    Home Country
    Scotland Scotland
    Please test an report back
    FreakyJ, rebuilt my MP 1.5 TV Server, installed your patch shortly after you released it and after extensive usage over the Christmas holidays I am pleased to report that all seems to be working well. Thank you for this Christmas present :). As you know, this is the first time I've got a working MP1 setup since I purchased my 1x TBS 5280 and 2x TBS 5980! I will provide more detailed feedback when I've got time. Thanks again!
     

    andraves

    MP Donator
  • Premium Supporter
  • January 9, 2007
    84
    10
    Home Country
    Norway Norway
    Happy New Year!!!

    Short question. Can I use the latest patch with MP 1.6.0?

    If not, could anyone please make a working patch for 1.6.0?

    A
     

    Users who are viewing this thread

    Top Bottom