[Bug 704760] opencv: disparity-map calculation element
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Tue Jul 30 01:57:12 PDT 2013
https://bugzilla.gnome.org/show_bug.cgi?id=704760
GStreamer | gst-plugins-bad | 1.x
--- Comment #8 from Sebastian Dröge (slomo) <slomo at circular-chaos.org> 2013-07-30 08:57:08 UTC ---
(In reply to comment #6)
> BUT: Still don't see the caps negotiation clearly :(
> I tried forcing the caps on both src and the other sink when there is a
> sink_event, but then the negotiation doesn't work out. Help! :'(
What you would do is something like the following:
sink_query(CAPS):
- If !gst_pad_has_current_caps(srcpad):
return gst_pad_get_template_caps(pad);
- else:
return gst_pad_get_current_caps(srcpad);
sink_event(CAPS):
- if !gst_pad_has_current_caps(srcpad):
gst_pad_set_caps(srcpad, caps);
- else if !gst_caps_is_equal(gst_pad_get_current_caps(srcpad), caps):
fail();
- else:
succeed();
--
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