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 444648 - [API] add GstParamSpecFraction
[API] add GstParamSpecFraction
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal enhancement
: 0.10.14
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-06-06 09:18 UTC by Tim-Philipp Müller
Modified: 2007-06-06 11:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
propsed API addition, adds gst_param_spec_fraction(), with unit test and docs (16.94 KB, patch)
2007-06-06 09:19 UTC, Tim-Philipp Müller
committed Details | Review

Description Tim-Philipp Müller 2007-06-06 09:18:11 UTC
Would be nice to provide a GstParamSpec fraction. This is needed/useful for objects/elements that want to expose fraction properties. (ximagesink/xvimagesink do this via string properties currently for the display-aspect-ratio, which is a bit painful both for totem and the sink implementations).
Comment 1 Tim-Philipp Müller 2007-06-06 09:19:17 UTC
Created attachment 89456 [details] [review]
propsed API addition, adds gst_param_spec_fraction(), with unit test and docs
Comment 2 Tim-Philipp Müller 2007-06-06 11:21:32 UTC
 2007-06-06  Tim-Philipp Müller  <tim at centricular dot net>

        * docs/gst/gstreamer-sections.txt:
        * gst/Makefile.am:
        * gst/gst.c:
        * gst/gst.h:
        * gst/gstparamspecs.c: (_gst_param_fraction_init),
        (_gst_param_fraction_set_default), (_gst_param_fraction_validate),
        (_gst_param_fraction_values_cmp),
        (gst_param_spec_fraction_get_type), (gst_param_spec_fraction):
        * gst/gstparamspecs.h:
        * gst/gstvalue.c:
        * tests/check/Makefile.am:
        * tests/check/gst/.cvsignore:
        * tests/check/gst/gstparamspecs.c: (gst_dummy_obj_base_init),
        (gst_dummy_obj_class_init), (gst_dummy_obj_init),
        (gst_dummy_obj_set_property), (gst_dummy_obj_get_property),
        (GST_START_TEST), (gst_param_spec_suite):
          API: add GstParamSpecFraction, so elements can have fraction
          properties without lots of painful string parsing (#444648).