[gstreamer-bugs] [Bug 614296] [basetransform] Try suggestion on bad pad alloc

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Apr 2 10:28:09 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=614296
  GStreamer | gstreamer (core) | git

Sebastian Dröge <slomo> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
                 CC|                            |slomo at circular-chaos.org
     Ever Confirmed|0                           |1

--- Comment #3 from Sebastian Dröge <slomo at circular-chaos.org> 2010-04-02 17:28:07 UTC ---
+            while ((size = gst_caps_get_size (allowed)) > 1)
+              gst_caps_remove_structure (allowed, size - 1);

You can use gst_caps_truncate() here, it does exactly that ;)


Why can't we know the downstream caps in this case? Can't you simply call
gst_pad_peer_get_caps() to get possible caps, intersect them, and do all the
standard basetransform fixating magic?

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



More information about the Gstreamer-bugs mailing list