[Bug 657319] videorate should use basetransform
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Wed Aug 31 06:03:38 PDT 2011
https://bugzilla.gnome.org/show_bug.cgi?id=657319
GStreamer | gst-plugins-base | git
--- Comment #6 from Sjoerd Simons <sjoerd at luon.net> 2011-08-31 13:03:35 UTC ---
(In reply to comment #4)
> Review of attachment 194839 [details]:
>
> Looks good in general (and you can use basetransform for non-1-to-1 elements,
> see audiofirfilter for example, you just have to handle additional buffers
> yourself and drop buffers with GST_BASE_TRANSFORM_FLOW_DROPPED)
>
> ::: gst/videorate/gstvideorate.c
> @@ +285,3 @@
> {
> + GstStructure *s;
> + gint nom, denom;
>
> It's numerator, not nomerator/nominator ;)
>
> @@ +302,3 @@
> GstStructure *structure;
> gboolean ret = TRUE;
> + //GstPad *otherpad, *opeer;
>
> C++/C99 comment
Fixed up/merged this two (will attach the updated patch)
> @@ -407,3 @@
> - if (gst_structure_has_field (structure, "pixel-aspect-ratio"))
> - gst_structure_fixate_field_nearest_fraction (structure,
> - "pixel-aspect-ratio", 1, 1);
>
> These fixations might still be necessary in the fixate vfunc
As discussed on IRC, basetransform falls back to gst_pad_fixate_caps if after
calling the fixate vfunc some fields aren't fixated yet, so this shouldn't be
needed anymore
--
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