diff options
Diffstat (limited to 'gst/mpegtsparse/mpegtsparse.c')
-rw-r--r-- | gst/mpegtsparse/mpegtsparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/mpegtsparse/mpegtsparse.c b/gst/mpegtsparse/mpegtsparse.c index 914bed36..994ea0b7 100644 --- a/gst/mpegtsparse/mpegtsparse.c +++ b/gst/mpegtsparse/mpegtsparse.c @@ -717,7 +717,7 @@ mpegts_parse_apply_pat (MpegTSParse * parse, GValueArray * pat_info) "program-number", &program_number, "pid", &pid, NULL); program = mpegts_parse_get_program (parse, program_number); - if (program->patcount-- == 1) + if (--program->patcount > 0) /* the program has been referenced by the new pat, keep it */ continue; |