mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
qtdemux: don't use glib 2.44-only API
This commit is contained in:
parent
7d7e54ce68
commit
0fbf5f3d9e
1 changed files with 4 additions and 3 deletions
|
@ -4891,10 +4891,11 @@ gst_qtdemux_decorate_and_push_buffer (GstQTDemux * qtdemux,
|
|||
|
||||
index = stream->sample_index - (stream->n_samples - info->crypto_info->len);
|
||||
if (G_LIKELY (index >= 0 && index < info->crypto_info->len)) {
|
||||
crypto_info =
|
||||
g_steal_pointer (&g_ptr_array_index (info->crypto_info, index));
|
||||
/* steal structure from array */
|
||||
crypto_info = g_ptr_array_index (info->crypto_info, index);
|
||||
g_ptr_array_index (info->crypto_info, index) = NULL;
|
||||
GST_LOG_OBJECT (qtdemux, "attaching cenc metadata [%u]", index);
|
||||
if (!gst_buffer_add_protection_meta (buf, crypto_info))
|
||||
if (!crypto_info || !gst_buffer_add_protection_meta (buf, crypto_info))
|
||||
GST_ERROR_OBJECT (qtdemux, "failed to attach cenc metadata to buffer");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue