Ticket #13263: 20180524_gary_patch2a_ticket13263.patch

File 20180524_gary_patch2a_ticket13263.patch, 886 bytes (added by Peter Bennett, 11 months ago)

patch 2a

  • mythtv/libs/libmythtv/mpeg/mpegtables.cpp

    diff --git a/mythtv/libs/libmythtv/mpeg/mpegtables.cpp b/mythtv/libs/libmythtv/mpeg/mpegtables.cpp
    index 3120b821f6..e61a699075 100644
    a b ProgramMapTable* ProgramMapTable::Create( 
    445445        uint len = global_desc[i][1] + 2;
    446446        gdesc.insert(gdesc.end(), global_desc[i], global_desc[i] + len);
    447447    }
    448     pmt->SetProgramInfo(&gdesc[0], gdesc.size());
     448    pmt->SetProgramInfo(gdesc.data(), gdesc.size());
    449449
    450450    for (uint i = 0; i < count; i++)
    451451    {
    ProgramMapTable* ProgramMapTable::Create( 
    457457                         prog_desc[i][j], prog_desc[i][j] + len);
    458458        }
    459459
    460         pmt->AppendStream(pids[i], types[i], &pdesc[0], pdesc.size());
     460        pmt->AppendStream(pids[i], types[i], pdesc.data(), pdesc.size());
    461461    }
    462462    pmt->Finalize();
    463463