mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
binary registry: Don't attempt to parse empty caps
This commit is contained in:
parent
70fcf4a201
commit
6911aa59be
1 changed files with 1 additions and 1 deletions
|
@ -958,7 +958,7 @@ gst_registry_binary_load_feature (GstRegistry * registry, gchar ** in,
|
|||
|
||||
/* load caps */
|
||||
unpack_string (*in, str);
|
||||
factory->caps = (g_str_equal (str, "")) ? NULL : gst_caps_from_string (str);
|
||||
factory->caps = (str && *str) ? gst_caps_from_string (str) : NULL;
|
||||
g_free (str);
|
||||
/* load extensions */
|
||||
if (tff->nextensions) {
|
||||
|
|
Loading…
Reference in a new issue