Ticket #797: 797-v1.patch

File 797-v1.patch, 1.0 KB (added by danielk, 20 years ago)

Can you try the attached patch?

  • libs/libmythtv/dvbrecorder.cpp

     
    966966    }
    967967    else
    968968    {
    969         // if this is not for a hardware decoder, record everything.
     969        // If this is not for a hardware decoder, record everything
     970        // we know about (ffmpeg doesn't like some DVB streams).
    970971        for (it = pmt_list.begin(); it != pmt_list.end(); ++it)
    971             (*it).Record = true;
     972        {
     973            desc_list_t list;
     974            DescList_to_desc_list((*it).Descriptors, list);
     975            uint type = StreamID::Normalize((*it).Orig_Type, list);
     976            if (StreamID::IsAudio(type) || StreamID::IsVideo(type) ||
     977                (ES_TYPE_TELETEXT == (*it).Type) ||
     978                (ES_TYPE_SUBTITLE == (*it).Type))
     979            {               
     980                (*it).Record = true;
     981            }
     982        }
    972983    }
    973984
    974985    print_pmt_info(LOC, pmt_list,