Re: Are there Perl bindings for gstreamer-1.0?



Hi Terence,

Well I got this too:

On 28/04/14 19:57, Terence Ferraro wrote:
It looks like it hands off a: Source: Glib::Object::_Unregistered::GstPlaySink=HASH(0x8af8a40) as the $src. You'll then need to set that to the window id of the drawable, somehow. Let me know if you have any luck. Otherwise, I can look into this a little further tonight or tomorrow.
The required command seems to be "set_window_handle", which in turn is a member of gst_video_overlay (according to grep -A1 set_window_handle /usr/share/gir-1.0/Gst*-1.0.gir) or GstVideoOverlay (according to the object itself):

 no strict 'refs';
for(keys %Glib::Object::_Unregistered::) { # All the symbols in Glib::Object::_Unregistered::GstXImageSink's symbol table
      print "$_\n" ;
    }
use strict 'refs';

Gives:

GstVideoSink::
GstVideoTestSrc::
GstNavigation::
GstXImageSink::
GstVideoOverlay::
GstCapsFilter::

But I don't see how to go from $src to its base-class object (if such a beast exists) to use set_window_handle.

$src->get_parent() just gives me 'pipeline', which doesn't help.

What do you think?

Regards

Steve.


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