mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
mpegtssection: Don't free empty streams
Also avoids a useless assertion
This commit is contained in:
parent
a39dc142e6
commit
d1fa342b71
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue