GNOME Bugzilla – Bug 360467
[API] add gst_tag_list_is_empty ()
Last modified: 2006-10-09 11:20:57 UTC
It would be nice to have a gst_tag_list_is_empty(). Currently the only way to find out whether a tag list is empty is to cast it to a structure and use gst_structure_n_fields() directly, which is not only unintuitive but also not really 100% correct since the derivation from GstStructure is not guaranteed or mentioned anywhere. Patch to follow.
Created attachment 74240 [details] [review] proposed addition
Committed: 2006-10-09 Tim-Philipp Müller <tim at centricular dot net> * gst/gsttaglist.c: (gst_tag_list_is_empty): * gst/gsttaglist.h: * docs/gst/gstreamer-sections.txt: API: add gst_tag_list_is_empty() (#360467). * tests/check/gst/gsttag.c: (GST_START_TEST): And a test case.