mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
hlsdemux2: Don't leak PDT datetime
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3883>
This commit is contained in:
parent
96613c45fb
commit
854683c871
1 changed files with 4 additions and 3 deletions
|
@ -1057,10 +1057,11 @@ gst_hls_demux_stream_data_received (GstAdaptiveDemux2Stream * stream,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!hls_stream->pdt_tag_sent && file != NULL && file->datetime != NULL) {
|
if (!hls_stream->pdt_tag_sent && file != NULL && file->datetime != NULL) {
|
||||||
|
GstDateTime *pdt_time = gst_date_time_new_from_g_date_time (g_date_time_ref
|
||||||
|
(file->datetime));
|
||||||
gst_adaptive_demux2_stream_set_tags (stream,
|
gst_adaptive_demux2_stream_set_tags (stream,
|
||||||
gst_tag_list_new (GST_TAG_DATE_TIME,
|
gst_tag_list_new (GST_TAG_DATE_TIME, pdt_time, NULL));
|
||||||
gst_date_time_new_from_g_date_time (g_date_time_ref
|
gst_date_time_unref (pdt_time);
|
||||||
(file->datetime)), NULL));
|
|
||||||
hls_stream->pdt_tag_sent = TRUE;
|
hls_stream->pdt_tag_sent = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue