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 342432 - buggy code in help examples /2
buggy code in help examples /2
Status: RESOLVED WONTFIX
Product: GStreamer
Classification: Platform
Component: documentation
0.10.x
Other All
: Normal minor
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-05-20 16:28 UTC by albx
Modified: 2012-10-09 16:02 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description albx 2006-05-20 16:28:00 UTC
(1) in http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-dynamic.html

replace 
  factories = gst_registry_pool_feature_filter (
      (GstPluginFeatureFilter) cb_feature_filter, FALSE, NULL);

with something like
  factories = gst_registry_feature_filter ( gst_registry_get_default(),
      (GstPluginFeatureFilter) cb_feature_filter, FALSE, NULL);

and replace
    gst_bin_add (GST_BIN (pipeline), sinkelement);

with smth like
    gst_bin_add (GST_BIN (gst_pad_get_parent (srcpad)), sinkelement);

(at least, this way it compiles, but segfaults after detecting correct media type)

thank
alb
Comment 1 Tim-Philipp Müller 2006-05-25 08:30:14 UTC
There's quite a bit that needs fixing in this example. Would be nice if we could just replace a whole chunk of code there with gst_element_factory_can_sink_caps() as well, alas: it doesn't work right (e.g. won't match audio/mpeg,mpegversion=1,layer=2 to mad's template caps because those contain additional rate/channel parameters).


Not entirely sure what the point of the entire chapter is anyway (too advanced and specialized IMHO).

Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2011-03-01 21:24:44 UTC
The section tried to explain how to handle sometimes pads and plug a suitable element. I agree it is quite special. Shall we just remove the chapter? Or focus on registry look-ups (the first example).
Comment 3 Tim-Philipp Müller 2012-10-09 16:02:26 UTC
"Fixed" :)

commit 775594fa3bd17c0cb72655dfb33fe086def56c59
Author: Wim Taymans <wim.taymans@collabora.co.uk>
Date:   Tue Oct 9 17:06:04 2012 +0200

    manual: remove outdated autoplugging section
    
    Remove autoplugging chapter and point to decodebin/playbin examples.