Re: GStreamer position querying



That's exactly what happened. I didn't realize my last _expression_ in the subroutine (after commenting stuff out while troubleshooting) was being evaluated as a non-zero value. It makes perfect sense now.

Thanks again for your help.

On Thu, Dec 17, 2009 at 3:36 PM, Torsten Schoenfeld <kaffeetisch gmx de> wrote:
On 17.12.2009 22:28, Chris Bartak wrote:
I was using a Glib::Timeout (in a Gtk main loop) to call the subroutine that
was doing the querying, and forgot to return TRUE. I didn't catch it because
the Timeout wasn't removed after the first iteration failed to return TRUE,
which is supposed to be the behavior of Timeout. I'm still puzzled why the
Timeout didn't get removed.

When there's no explicit return statement, a sub routine returns the value of the last _expression_ evaluated.  Maybe that happened in your case?

_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list



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