Skip to content

Commit

Permalink
mpegts-mythtv.c: mpegts_open_section_filter() remove unnecessary addi…
Browse files Browse the repository at this point in the history
…tion

In add_section_stream() it is already closed if open.

pat_cb() only calls if it is not open.

mpegts_read_header() only opens filters for fixed PIDs, so the closing to
reopen is unnecessary.  Similarly with avpriv_mpegts_parse_open().
  • Loading branch information
ulmus-scott authored and bennettpeter committed Aug 15, 2022
1 parent cd89d00 commit 3464b16
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions mythtv/external/FFmpeg/libavformat/mpegts-mythtv.c
Expand Up @@ -576,8 +576,6 @@ static MpegTSFilter *mpegts_open_filter(MpegTSContext *ts, unsigned int pid,
return filter;
}

static void mpegts_close_filter(MpegTSContext *ts, MpegTSFilter *filter);

static MpegTSFilter *mpegts_open_section_filter(MpegTSContext *ts,
unsigned int pid,
SectionCallback *section_cb,
Expand All @@ -588,12 +586,6 @@ static MpegTSFilter *mpegts_open_section_filter(MpegTSContext *ts,
MpegTSSectionFilter *sec;
uint8_t *section_buf = av_mallocz(MAX_SECTION_SIZE);

// MythTV from PMT tracking in ffmpeg patch from danielk. https://github.com/MythTV/mythtv/commit/236872aa4dc73c45f01d71f749eb50eaf7eb12e4
if (filter = ts->pids[pid]) {
mpegts_close_filter(ts, filter);
}
// end MythTV

if (!section_buf)
return NULL;

Expand Down

0 comments on commit 3464b16

Please sign in to comment.