mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
hlsdemux: Fix cleanup when decryption fails
First unmap buffers, then unref them. And also unref the key fragment.
This commit is contained in:
parent
f3464e01bb
commit
792d1e0109
1 changed files with 5 additions and 4 deletions
|
@ -1377,14 +1377,15 @@ decrypt_error:
|
|||
g_set_error (err, GST_STREAM_ERROR, GST_STREAM_ERROR_DECRYPT,
|
||||
"Failed to decrypt fragment");
|
||||
|
||||
gst_buffer_unref (key_buffer);
|
||||
gst_buffer_unref (encrypted_buffer);
|
||||
gst_buffer_unref (decrypted_buffer);
|
||||
|
||||
gst_buffer_unmap (decrypted_buffer, &decrypted_info);
|
||||
gst_buffer_unmap (encrypted_buffer, &encrypted_info);
|
||||
gst_buffer_unmap (key_buffer, &key_info);
|
||||
|
||||
gst_buffer_unref (key_buffer);
|
||||
gst_buffer_unref (encrypted_buffer);
|
||||
gst_buffer_unref (decrypted_buffer);
|
||||
|
||||
g_object_unref (key_fragment);
|
||||
g_object_unref (encrypted_fragment);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue