[gstreamer-bugs] [Bug 539108] gst_ghost_pad_new() does more than call g_object_new()
bugzilla-daemon at bugzilla.gnome.org
Wed Jan 7 19:48:18 PST 2009
If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
GStreamer | gstreamer (core) | Ver: HEAD CVS
------- Comment #22 from José Alburquerque 2009-01-08 03:48 UTC -------
Sorry, I didn't quite understand that I was my turn to reply
I don't quite understand the internals of GStreamer, but the reason I supplied
the test cases was to show that in the case where a ghost pad is created from a
target pad, the C API fails to create the ghost pad but the present construct
function cannot know to return an unsuccessful value (false), because it does
not take the target pad into consideration as gst_ghost_pad_new() does.
What I'm looking for is a way to have C++ constructors, which are parallel to
the ghost pad new functions first create the ghost pad with g_object_new()
(there are four constructors in the C++ bindings just as there are four ghost
pad new functions).
All I'm asking for is that the C++ constructors can somehow use the construct
function (or functions, if more than one is needed) to properly construct the
ghost pad, and to tell if the construction failed or succeeded, based on
whether the corresponding ghost pad new functions would also fail or succeed.
If someone can suggest some combination that I can use with the present
construct function to determine if each ghost pad new function would succeed or
fail (which then the four C++ constructors can use), I would consider this bug
OTHO, if this is not possible, I would greatly appreciate it if maybe a
construct function can be supplied for each ghost pad new function that would
correctly succeed or fail if its corresponding new function would succeed or
fail like the patch I supplied does (I know it may be hacky but the idea is
what I'm trying to convey).
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.
You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=539108.
More information about the Gstreamer-bugs