After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 681681 - childproxy: make gst_child_proxy_lookup() take a GstChildProxy instead of GObject ?
childproxy: make gst_child_proxy_lookup() take a GstChildProxy instead of GOb...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.11.x
Other Linux
: Normal blocker
: 0.11.x
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-08-12 12:26 UTC by Tim-Philipp Müller
Modified: 2012-08-13 09:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
childproxy: make gst_child_proxy_lookup() a proper GstChildProxy method (4.40 KB, patch)
2012-08-12 12:28 UTC, Tim-Philipp Müller
committed Details | Review
parse: fix up for gst_child_proxy_lookup() only working on child proxy interfaces (3.10 KB, patch)
2012-08-12 12:29 UTC, Tim-Philipp Müller
committed Details | Review

Description Tim-Philipp Müller 2012-08-12 12:26:38 UTC
I think gst_child_proxy_lookup() should either be made a GstChildProxy method, and take a GstChildProxy as first argument, or be renamed. Or both, with a utility function somewhere that does if IS_CHILD_PROXY else gobject code fallback.

Reason is that the way it's currently done is weird and breaks stuff for bindings, you can't do childproxy.lookup('foo') but have to do childproxy.lookup(childproxy, 'foo').

It should probably be renamed in any case because "lookup" is a bit too generic a method name really, IMHO.
Comment 1 Tim-Philipp Müller 2012-08-12 12:28:42 UTC
Created attachment 220940 [details] [review]
 childproxy: make gst_child_proxy_lookup() a proper GstChildProxy method
Comment 2 Tim-Philipp Müller 2012-08-12 12:29:12 UTC
Created attachment 220941 [details] [review]
 parse: fix up for gst_child_proxy_lookup() only working on child proxy interfaces
Comment 3 Sebastian Dröge (slomo) 2012-08-12 16:48:43 UTC
Looks good and makes sense IMHO
Comment 4 Tim-Philipp Müller 2012-08-13 09:40:40 UTC
commit 9a38d713bdd594bd5d2b844b8a2fabc53913c828
Author: Tim-Philipp Müller <tim@centricular.net>
Date:   Sun Aug 12 13:27:06 2012 +0100

    parse: fix up for gst_child_proxy_lookup() only working on child proxy interfaces
    
    https://bugzilla.gnome.org/show_bug.cgi?id=681681

commit ffa60dc3ee386165820ed1a7f1eb28e2be4ced58
Author: Tim-Philipp Müller <tim@centricular.net>
Date:   Sun Aug 12 13:24:18 2012 +0100

    childproxy: make gst_child_proxy_lookup() a proper GstChildProxy method
    
    No longer accept any old GObjects. This makes things nicer for
    bindings. If a utility function that handles both nicely
    is deemed worthwhile, we can still add one to gstutils.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=681681