mpegtssection: Don't free empty streams

Also avoids a useless assertion
This commit is contained in:
Edward Hervey 2016-11-24 11:12:23 +01:00 committed by Edward Hervey
parent a39dc142e6
commit d1fa342b71

View file

@ -632,6 +632,7 @@ _gst_mpegts_pmt_free (GstMpegtsPMT * pmt)
{
if (pmt->descriptors)
g_ptr_array_unref (pmt->descriptors);
if (pmt->streams)
g_ptr_array_unref (pmt->streams);
g_slice_free (GstMpegtsPMT, pmt);
}