Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I came here with a similar question regarding EV::Glib usage, but ended up having no issues using it.. So maybe I'm missing what you're trying to do here.</p> <p>Here is the simple script I knocked up to test how EV::Glib works:</p> <pre><code>use EV::Glib; use Gtk2 '-init'; my $t = EV::timer 1, 1, sub { print "I am here!\n" }; Glib::Timeout-&gt;add(1000, sub { print "I am also here!\n" }); my $window = Gtk2::Window-&gt;new('toplevel'); $window-&gt;signal_connect(delete_event =&gt; sub { EV::unloop }); my $button = Gtk2::Button-&gt;new('Action'); $button-&gt;signal_connect(clicked =&gt; sub { print("Hello Gtk2-EV-Perl\n"); }); $window-&gt;add($button); $window-&gt;show_all; EV::loop; </code></pre> <p>With this the signal handler on the button will work, and so too will both the timer events. So the EV loop will correctly drive the entire thing.</p> <p>The main issue I can see is in the <a href="http://search.cpan.org/~mlehmann/Glib-EV-2.02/EV.pm#DESCRIPTION" rel="nofollow">documentation</a>: "This [module] makes Glib compatible to EV. Calls into the Glib main loop are more or less equivalent to calls to EV::loop (<em>but not vice versa, you have to use the Glib mainloop functions</em>)." What this means is if you're hookling up an EV::loop event, it won't equate to a Glib::mainloop and so might not 'tickle' (or 'be tickled by') your GStreamer event. Maybe that could be the issue you're experiencing, especially if you're using AnyEvent and its generic callbacks which are likely translating to EV::loop calls instead of Glib::MainLoop calls.</p> <p>This is all just a guess though -- I've never used GStreamer myself, and I certainly don't know what you're trying to achieve without seeing more code. But I think my halfassed conclusion is pretty sound advice regardless: If you're using something specific to Glib, you should probably be hooking up events to it using Glib.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload