[gstreamer-bugs] [Bug 614296] [basetransform] Try suggestion on bad pad alloc
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Fri Jul 9 06:53:53 PDT 2010
https://bugzilla.gnome.org/show_bug.cgi?id=614296
GStreamer | gstreamer (core) | git
--- Comment #8 from Stefan Kost (gstreamer, gtkdoc dev) <ensonic at sonicpulse.de> 2010-07-09 13:53:50 UTC ---
Review of attachment 157983:
--> (https://bugzilla.gnome.org/review?bug=614296&attachment=157983)
::: libs/gst/base/gstbasetransform.c
@@ +1654,3 @@
+ /* do a little fixation of our own
+ * Ideally, if the pad has a fixate function, we should use it,
+ * but we don't have how to know */
The end of the comment sounds weird.
@@ +1667,3 @@
+ * renegotiation */
+ gst_structure_foreach (gst_caps_get_structure (caps, 0),
+ fixate_from_last_caps, gst_caps_get_structure (allowed, 0));
So if you don't do this, you end up with e.g. framerate=0?
Is the '0' framerate caused because behind the scenes
gst_structure_fixate_field_nearest_int() is called?
Would it make sense to call:
allowed = gst_base_transform_find_transform(trans, pad. caps);
instead of most of the code here.
--
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