Re: GStreamer and Gtk3



On Tue, Nov 25, 2014 at 09:38:59PM +0100, Torsten Schoenfeld wrote:
On 23.11.2014 14:30, Wouter Verhelst wrote:
Unfortunately, this doesn't work, and I can't figure out what the issue is. The
program currently outputs the following:

[ unknown state-changed ]
Argument "[ unknown ]" isn't numeric in subroutine entry at /usr/share/perl5/Gtk3.pm line 318.

Both lines are output by the bus_call sub. The first is the msg->type thing;
the second one is (I believe) the 'msg->type & "element"' line.

I can't really help with the gstreamer-specific stuff, but the cryptic
error message actually comes from when your bus_call sub returns.  It's
supposed to return a numeric value indicating whether it wants to
continue receiving messages.  So, put a "return Glib::SOURCE_CONTINUE;"
at the end.

Thanks! That got me a little further. Not yet where I want to be (it's
using the whole window rather than just the part that I want it to use
for video output), but at least I'm seeing the videotestsrc output now.

-- 
Wouter Verhelst
NixSys BVBA
M: +32 486 836 198


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