mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 05:31:15 +00:00
mpegtspacketizer: handle "packetizing" already packetized data
.. when the section didn't have a packetizer. This can happen as a result of building a new section from a copy of the original data of another section. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/913>
This commit is contained in:
parent
4af003bc02
commit
e4f40ba526
1 changed files with 2 additions and 1 deletions
|
@ -1296,7 +1296,6 @@ gst_mpegts_section_packetize (GstMpegtsSection * section, gsize * output_size)
|
||||||
guint8 *crc;
|
guint8 *crc;
|
||||||
g_return_val_if_fail (section != NULL, NULL);
|
g_return_val_if_fail (section != NULL, NULL);
|
||||||
g_return_val_if_fail (output_size != NULL, NULL);
|
g_return_val_if_fail (output_size != NULL, NULL);
|
||||||
g_return_val_if_fail (section->packetizer != NULL, NULL);
|
|
||||||
|
|
||||||
/* Section data has already been packetized */
|
/* Section data has already been packetized */
|
||||||
if (section->data) {
|
if (section->data) {
|
||||||
|
@ -1304,6 +1303,8 @@ gst_mpegts_section_packetize (GstMpegtsSection * section, gsize * output_size)
|
||||||
return section->data;
|
return section->data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_return_val_if_fail (section->packetizer != NULL, NULL);
|
||||||
|
|
||||||
if (!section->packetizer (section))
|
if (!section->packetizer (section))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue