gnomemm r2064 - in gstreamermm/trunk: . gstreamer/src
- From: jaalburqu svn gnome org
- To: svn-commits-list gnome org
- Subject: gnomemm r2064 - in gstreamermm/trunk: . gstreamer/src
- Date: Thu, 19 Feb 2009 01:12:52 +0000 (UTC)
Author: jaalburqu
Date: Thu Feb 19 01:12:52 2009
New Revision: 2064
URL: http://svn.gnome.org/viewvc/gnomemm?rev=2064&view=rev
Log:
2009-02-18 Josà Alburquerque <jaalburqu svn gnome org>
* gstreamer/src/gst_vfuncs.defs:
* gstreamer/src/interface.hg:
* gstreamer/src/xoverlay.hg: Added vfuncs to fix media player example
which was not embedding the video window because these vfuncs were
missing.
Modified:
gstreamermm/trunk/ChangeLog
gstreamermm/trunk/gstreamer/src/gst_vfuncs.defs
gstreamermm/trunk/gstreamer/src/interface.hg
gstreamermm/trunk/gstreamer/src/xoverlay.hg
Modified: gstreamermm/trunk/gstreamer/src/gst_vfuncs.defs
==============================================================================
--- gstreamermm/trunk/gstreamer/src/gst_vfuncs.defs (original)
+++ gstreamermm/trunk/gstreamer/src/gst_vfuncs.defs Thu Feb 19 01:12:52 2009
@@ -190,6 +190,16 @@
)
)
+; GstImplementsInterface
+
+(define-vfunc supported
+ (of-object "GstImplementsInterface")
+ (return-type "gboolean")
+ (parameters
+ '("GType" "iface_type")
+ )
+)
+
; GstBaseSrc
(define-vfunc get_caps
@@ -612,3 +622,26 @@
'("GstStructure*" "structure")
)
)
+
+; GstXOverlay
+
+(define-vfunc set_xwindow_id
+ (of-object "GstXOverlay")
+ (return-type "void")
+ (parameters
+ '("gulong" "xwindow_id")
+ )
+)
+
+(define-vfunc expose
+ (of-object "GstXOverlay")
+ (return-type "void")
+)
+
+(define-vfunc handle_events
+ (of-object "GstXOverlay")
+ (return-type "void")
+ (parameters
+ '("gboolean" "handle_events")
+ )
+)
Modified: gstreamermm/trunk/gstreamer/src/interface.hg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/interface.hg (original)
+++ gstreamermm/trunk/gstreamer/src/interface.hg Thu Feb 19 01:12:52 2009
@@ -33,14 +33,21 @@
*/
class Interface : public Glib::Interface
{
- _CLASS_INTERFACE(Interface, GstImplementsInterface, GST_IMPLEMENTS_INTERFACE, GstImplementsInterface)
+ _CLASS_INTERFACE(Interface, GstImplementsInterface, GST_IMPLEMENTS_INTERFACE, GstImplementsInterfaceClass)
public:
_WRAP_METHOD(static bool element_implements(const Glib::RefPtr<const Gst::Element>&element, GType iface_type), gst_element_implements_interface)
+ /** Casts an element to an interface that its underlying GObject implements.
+ * See Gst::ElementInterfaced for more details.
+ */
template <class T_CastTo>
static Glib::RefPtr< Gst::ElementInterfaced<T_CastTo> > cast(const Glib::RefPtr<Gst::Element>& element);
+ /** Virtual method to tell whether an interface is supported.
+ */
+ _WRAP_VFUNC(bool supported(GType iface_type), "supported")
+
//For some reason, gmmproc thinks that all of the GstElement functions (and
//signals) are also members of GstImplementsInterface.
_IGNORE(gst_element_remove_pad,
Modified: gstreamermm/trunk/gstreamer/src/xoverlay.hg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/xoverlay.hg (original)
+++ gstreamermm/trunk/gstreamer/src/xoverlay.hg Thu Feb 19 01:12:52 2009
@@ -107,7 +107,17 @@
_WRAP_METHOD(void expose(), gst_x_overlay_expose)
_WRAP_METHOD(void handle_events(bool handle_events), gst_x_overlay_handle_events)
- //TODO: Wrap vfuncs.
+ /** Virtual method to configure the XWindow id.
+ */
+ _WRAP_VFUNC(void set_xwindow_id(gulong xwindow_id), "set_xwindow_id")
+
+ /** Virtual method to handle expose events.
+ */
+ _WRAP_VFUNC(void expose(), "expose")
+
+ /** Virtual method to handle events.
+ */
+ _WRAP_VFUNC(void handle_events(bool handle_events), "handle_events")
};
} // namespace Gst
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]