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 318793 - check whether new date/tag API needs wrapping
check whether new date/tag API needs wrapping
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-python
git master
Other Linux
: Normal normal
: 0.9.6
Assigned To: GStreamer Maintainers
Johan (not receiving bugmail) Dahlin
Depends on:
Blocks:
 
 
Reported: 2005-10-13 19:31 UTC by Tim-Philipp Müller
Modified: 2005-11-22 20:20 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tim-Philipp Müller 2005-10-13 19:31:33 UTC
Don't know if anything related to this needs fixing in python:

 - core has a new type GST_TYPE_DATE (boxed type for GDate, 
    we support GLib2.6 so we can't use G_TYPE_DATE yet)
 - GST_TAG_DATE now is of type GST_TYPE_DATE
 - recently added related API:
      - gst_value_get_date()
      - gst_value_set_date()
      - GST_VALUE_HOLDS_DATE
      - gst_tag_list_get_date()
      - gst_tag_list_get_date_index()

Just FYI.

Cheers
 -Tim
Comment 1 Tim-Philipp Müller 2005-10-14 17:08:33 UTC
Here are the test cases that I wrote for these functions:

http://cvs.freedesktop.org/gstreamer/gstreamer/check/gst/gsttag.c?r1=1.4&r2=1.5
http://cvs.freedesktop.org/gstreamer/gstreamer/check/gst/gstvalue.c?r1=1.10&r2=1.11



And then there's more new API from today:

  gboolean
  gst_plugin_feature_check_version (GstPluginFeature *feature,
                                    guint             min_major,
                                    guint             min_minor,
                                    guint             min_micro);

and

  gboolean
  gst_default_registry_check_feature_version (const gchar *feature_name,
                                              guint        min_major,
                                              guint        min_minor,
                                              guint        min_micro);

Not sure if it makes sense to wrap those, the former probably more than the
latter. Test case for those is here:

http://cvs.freedesktop.org/gstreamer/gstreamer/check/gst/gstplugin.c?r1=1.7&r2=1.8

Cheers
 -Tim
Comment 2 Johan (not receiving bugmail) Dahlin 2005-10-14 17:10:18 UTC
It'd probably make more sense to implement similar functions directly in python.
Comment 3 Edward Hervey 2005-10-14 17:27:49 UTC
everything is in cvs now. Leaving it in NEEDINFO for followups.
Comment 4 Edward Hervey 2005-11-22 20:20:42 UTC
seems to satisfy everybody, closing bug.