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 533740 - [API] add gst_typefind_suggest_simple()
[API] add gst_typefind_suggest_simple()
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal enhancement
: 0.10.20
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-05-18 19:08 UTC by Tim-Philipp Müller
Modified: 2008-05-19 10:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
add gst_typefind_suggest_simple() (3.76 KB, patch)
2008-05-18 19:08 UTC, Tim-Philipp Müller
committed Details | Review

Description Tim-Philipp Müller 2008-05-18 19:08:00 UTC
I'd like a function like this:

void      gst_type_find_suggest_simple (GstTypeFind * find,
                                        guint         probability,
                                        const char  * media_type,
                                        const char  * fieldname, ...);

to make it possible to write nicer-looking and more terse typefinding code.
Comment 1 Tim-Philipp Müller 2008-05-18 19:08:57 UTC
Created attachment 111110 [details] [review]
add gst_typefind_suggest_simple()
Comment 2 Michael Smith 2008-05-18 19:14:35 UTC
Should this have G_GNUC_NULL_TERMINATED?

Looks good with that change; I guess uses of this will follow?
Comment 3 Tim-Philipp Müller 2008-05-19 10:46:50 UTC
> Should this have G_GNUC_NULL_TERMINATED?

Not reall, for the same reason gst_caps_new_simple() etc. don't have it, see bug #343346. We could add it here, but that would make it inconsistent with the other functions.


 2008-05-19  Tim-Philipp Müller  <tim.muller at collabora co uk>

        * docs/gst/gstreamer-sections.txt:
        * gst/gsttypefind.c: (gst_type_find_suggest_simple):
        * gst/gsttypefind.h:
        * win32/common/libgstreamer.def:
          API: add gst_type_find_suggest_simple(), #533740.