mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
mpegtsdemux: fix memleaks and refcounts
Use correct constants for PID_type so that we clear the right filter. provide_clock must return a ref to a clock.
This commit is contained in:
parent
9618c43784
commit
580b20d6cc
1 changed files with 3 additions and 4 deletions
|
@ -382,8 +382,8 @@ gst_mpegts_demux_reset (GstMpegTSDemux * demux)
|
|||
case PID_TYPE_ELEMENTARY:
|
||||
gst_pes_filter_uninit (&stream->filter);
|
||||
break;
|
||||
case PID_PROGRAM_ASSOCIATION_TABLE:
|
||||
case PID_CONDITIONAL_ACCESS_TABLE:
|
||||
case PID_TYPE_PROGRAM_ASSOCIATION:
|
||||
case PID_TYPE_CONDITIONAL_ACCESS:
|
||||
case PID_TYPE_PROGRAM_MAP:
|
||||
gst_section_filter_uninit (&stream->section_filter);
|
||||
break;
|
||||
|
@ -2620,8 +2620,7 @@ gst_mpegts_demux_provide_clock (GstElement * element)
|
|||
"MpegTSClock", NULL);
|
||||
demux->clock_base = GST_CLOCK_TIME_NONE;
|
||||
}
|
||||
|
||||
return demux->clock;
|
||||
return gst_object_ref (demux->clock);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue