After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 360467 - [API] add gst_tag_list_is_empty ()
[API] add gst_tag_list_is_empty ()
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal enhancement
: 0.10.11
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Reported: 2006-10-07 19:12 UTC by Tim-Philipp Müller
Modified: 2006-10-09 11:20 UTC
See Also:
GNOME target: ---
GNOME version: ---

proposed addition (2.99 KB, patch)
2006-10-07 19:13 UTC, Tim-Philipp Müller
committed Details | Review

Description Tim-Philipp Müller 2006-10-07 19:12:55 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.
Comment 1 Tim-Philipp Müller 2006-10-07 19:13:49 UTC
Created attachment 74240 [details] [review]
proposed addition
Comment 2 Tim-Philipp Müller 2006-10-09 11:20:57 UTC

 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.