[Bug 664818] Autoplugger sink bin receives strange caps while it gets the correct ones in 0.10.35 and earlier
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Sat Nov 26 11:21:20 PST 2011
https://bugzilla.gnome.org/show_bug.cgi?id=664818
GStreamer | gst-plugins-base | git
Josep Torra Valles <n770galaxy> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |UNCONFIRMED
--- Comment #8 from Josep Torra Valles <n770galaxy at gmail.com> 2011-11-26 19:21:18 UTC ---
(In reply to comment #5)
> Also in your case you should do something different. First check
> gst_pad_get_negotiated_caps(), if it is NULL you call gst_pad_get_caps() and
> check if the resulting caps are simple caps (gst_caps_is_simple()).
>
> But of course this doesn't mean that there is no bug, the caps you get with
> get_caps() here might really be wrong.
Do you mean something like the following?
{{{
GstPad *peer = gst_pad_get_peer (bin->sink_pad);
if (peer) {
caps = gst_pad_get_negotiated_caps (peer);
if (!caps) {
caps = gst_pad_get_caps_reffed (peer);
}
gst_object_unref (peer);
}
}}}
--
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