[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
GstXOverlay interface methods not available
- From: Emmanuel Rodriguez <emmanuel rodriguez gmail com>
- To: "gtk-perl-list gnome org List" <gtk-perl-list gnome org>
- Subject: GstXOverlay interface methods not available
- Date: Mon, 25 May 2009 18:27:38 +0200
Hi,
Is it possible that the GstXOverlay interface is not available in the Gstreamer Perl bindings?
I was playing around with Gstreamer's Perl API and I tried to port the Vala example "Vala GStreamer Video Example" [1]. In that example a "xvimagesink" is embedded in a Gtk2 window, or so I think as I don't have vala. This is acheived through the following Vala code:
private void on_play () {
((XOverlay) this.sink).set_xwindow_id (
Gdk.x11_drawable_get_xid (this.drawing_area.window));
this.pipeline.set_state (State.PLAYING);
}
When I run the corresponding Perl code (I've attached a sample script showing the problem):
$sink->set_xwindow_id($canvas->window->get_xid);
I get the following error:
Can't locate object method "set_xwindow_id" via package "Glib::Object::_Unregistered::GstXvImageSink" at ./gst-video-sample.pl line 48.
Is there another way to do the same? Maybe I'm not using the right function calls.
[1] http://live.gnome.org/Vala/GStreamerSample
--
Emmanuel Rodriguez
Attachment:
gst-video-sample.pl
Description: Perl program
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]