mpegtssection: Don't free empty streams
Also avoids a useless assertion
This commit is contained in:
parent
a39dc142e6
commit
d1fa342b71
@ -632,7 +632,8 @@ _gst_mpegts_pmt_free (GstMpegtsPMT * pmt)
|
|||||||
{
|
{
|
||||||
if (pmt->descriptors)
|
if (pmt->descriptors)
|
||||||
g_ptr_array_unref (pmt->descriptors);
|
g_ptr_array_unref (pmt->descriptors);
|
||||||
g_ptr_array_unref (pmt->streams);
|
if (pmt->streams)
|
||||||
|
g_ptr_array_unref (pmt->streams);
|
||||||
g_slice_free (GstMpegtsPMT, pmt);
|
g_slice_free (GstMpegtsPMT, pmt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user