serializing caps with one empty structure
This is only a small niche issue:
if a GstCaps *caps
contains a single empty GstStructure *str
with no features, and the name ANY
, then gst_caps_to_string (caps)
will produce the string ANY
. When this is read in by gst_caps_from_string
, rather than recreating the original structure, it will create an any caps!
Similarly, if str
was named EMPTY
or NONE
, then it would create an empty caps.
Maybe, in these three special cases, the caps should be serialized to ANY;
, EMPTY;
and NONE;
, or some other way to distinguish them?