GStreamer: fail setting x window id on video sink




Hiho,

I like to use a 'playbin' but redirect output to a specifix X window 
which ID is known.

My code looks like this:

  my $play       = GStreamer::ElementFactory->make("playbin", "play");
  my $video_sink = GStreamer::ElementFactory->make("xvimagesink", "video-sink");

  $video_sink->set_xwindow_id($xid);

  $play->set("video-sink", $video_sink);

  ...

$video_sink->set_xwindow_id($xid) fails with this error message:

  Can't locate object method "set_xwindow_id" via package
    "Glib::Object::_Unregistered::GstXvImageSink

GstXvImageSink implements the GstXOverlay interface, so this method 
should exist. Am I doing something wrong or is it a problem with the 
Perl bindings?

I'm using gstreamer-0.10 and libgstreamer-perl 0.10.

Thanks,

Jörn

-- 
Joern Reder
-> http://www.exit1.org/
-> http://search.cpan.org/~jred/

Attachment: pgpWAZ1kyJP4Q.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]