# HG changeset patch # User bcoudurier # Date 1239526336 0 # Node ID ea96a592b4a37172d8e9ec190ac164f6c7a563e3 # Parent 1273a2b9c32ad08ee8c080aaf7baabf530674da9 remove useless wrapper diff -r 1273a2b9c32a -r ea96a592b4a3 mpegts.c --- a/mpegts.c Sun Apr 12 08:49:20 2009 +0000 +++ b/mpegts.c Sun Apr 12 08:52:16 2009 +0000 @@ -711,12 +711,6 @@ mpegts_close_filter(ts, filter); } -static void mpegts_set_service(MpegTSContext *ts) -{ - mpegts_open_section_filter(ts, PAT_PID, - pat_cb, ts, 1); -} - static void sdt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len) { MpegTSContext *ts = filter->u.section_filter.opaque; @@ -1272,7 +1266,7 @@ url_fseek(pb, pos, SEEK_SET); mpegts_scan_sdt(ts); - mpegts_set_service(ts); + mpegts_open_section_filter(ts, PAT_PID, pat_cb, ts, 1); handle_packets(ts, s->probesize); /* if could not find service, enable auto_guess */