[gstreamer-bugs] [Bug 334290] Add interface for "allow-overwrite" signal in sinks

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Sun Mar 12 01:33:18 PST 2006


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=334290
 GStreamer | gstreamer (core) | Ver: HEAD CVS





------- Comment #1 from Tim-Philipp Müller  2006-03-12 09:33 UTC -------

Why not just something like

 static gboolean
 element_has_signal (GstElement *e, const chat *signal_name)
 {
   return (g_signal_lookup (signal_name, G_OBJECT_TYPE (e)) != 0);
 }

 if (element_has_signal (sink, "allow-overwrite")) {
   g_signal_connect (...)
 }

This of course makes the assumption that the signatures of the signals are the
same where they exist, but I'd expect that to be true for the 2 or 3 elements
that will ever have them.

Not sure if we need to introduce interfaces for stuff that's only ever going to
be used by 2 or 3 elements, but that's just me.


-- 
Configure bugmail: http://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