GNOME Bugzilla – Bug 796652
qtdemux: Critical warning in gst_qtdemux_request_protection_context
Last modified: 2018-10-17 14:54:47 UTC
GLib-CRITICAL **: g_strv_length: assertion 'str_array != NULL' failed (gdb) bt
+ Trace 238644
Xabier, what should be done in that case? Log a message and return early if gst_protection_filter_systems_by_available_decryptors() returned NULL? Or something else?
Protect the code to avoid the warnings and leave it the things as they are now. g_strv_length is a problem. I am not sure about gst_structure_set and g_strvfree should be fine according to the doc. TL&DR Some streams (specially in YouTube tests) report in the streams themselves different CDMs (streams can report PlayReady and Widevine but tests require ClearKey and it should work) than the ones that are going to be used eventually so should be able to run the query even if the we apparently do not have any decryptor for the reported systems because the app should give us the proper one and we should trust it. We'll fail later if the app lies to us with a system and that decryptor cannot be used or it does not exist.
Created attachment 372809 [details] [review] patch
Comment on attachment 372809 [details] [review] patch LGTM
Review of attachment 372809 [details] [review]: Go
Comment on attachment 372809 [details] [review] patch commit 56669205eb2d0887596574eabb7806b31c5ba5cf (origin/master, origin/HEAD, master) Author: Philippe Normand <philn@igalia.com> Date: Fri Jun 22 16:00:11 2018 +0100 qtdemux: Avoid warning when reporting about decryptors https://bugzilla.gnome.org/show_bug.cgi?id=796652