Skip to content

Commit

Permalink
mpegts-mythtv.c: pmt_cb(): harmonize part 5
Browse files Browse the repository at this point in the history
Add comments marking changes.

The for loop still needs harmonization.
  • Loading branch information
ulmus-scott authored and bennettpeter committed Aug 15, 2022
1 parent 7ebb93c commit 50de946
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mythtv/external/FFmpeg/libavformat/mpegts-mythtv.c
Expand Up @@ -2634,13 +2634,15 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
av_log(ts->stream, AV_LOG_TRACE, "sid=0x%x sec_num=%d/%d version=%d tid=%d\n",
h->id, h->sec_num, h->last_sec_num, h->version, h->tid);

// begin MythTV
/* if we require a specific PMT, and this isn't it return silently */
if (ts->req_sid >= 0 && h->id != ts->req_sid)
{
av_log(ts->stream, AV_LOG_TRACE, "We are looking for program 0x%x, not 0x%x",
ts->req_sid, h->id);
return;
}
// end MythTV

if (!ts->scan_all_pmts && ts->skip_changes)
return;
Expand Down Expand Up @@ -2762,6 +2764,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
desc_count++;
}

// begin MythTV
/* if the pmt has changed delete old streams,
* create new ones, and notify any listener.
*/
Expand Down Expand Up @@ -2806,6 +2809,10 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
ts->pmt_scan_state = PMT_FOUND;
ts->stop_parse = 1;
}
// end MythTV

if (!ts->pids[pcr_pid])
mpegts_open_pcr_filter(ts, pcr_pid);

out:
for (i = 0; i < mp4_descr_count; i++)
Expand Down

0 comments on commit 50de946

Please sign in to comment.