search for: timeout_id

Displaying 5 results from an estimated 5 matches for "timeout_id".

2007 Mar 21
0
4 commits - libswfdec/swfdec_js_movie.c libswfdec/swfdec_script.c player/swfdec_slow_loader.c
...r_get_size (child)); + } +} + +static void swfdec_slow_loader_dispose (GObject *object) { SwfdecSlowLoader *slow = SWFDEC_SLOW_LOADER (object); + g_signal_handlers_disconnect_by_func (slow->loader, swfdec_slow_loader_notify_cb, slow); g_object_unref (slow->loader); if (slow->timeout_id) { g_source_remove (slow->timeout_id); @@ -96,7 +105,11 @@ swfdec_slow_loader_tick (gpointer data) return TRUE; } - if (slow->loader->eof) { + if (slow->loader->error) { + swfdec_loader_error (SWFDEC_LOADER (slow), slow->loader->error); + slow->timeo...
2007 Aug 01
0
9 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_frame.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_loader_internal.h libswfdec/swfdec_loadertarget.c libswfdec/swfdec_loadertarget.h libswfdec/swfdec_movie.c
.../swfdec_slow_loader.c b/player/swfdec_slow_loader.c index c568316..603627a 100644 --- a/player/swfdec_slow_loader.c +++ b/player/swfdec_slow_loader.c @@ -81,12 +81,16 @@ swfdec_slow_loader_tick (gpointer data) swfdec_loader_error (SWFDEC_LOADER (slow), slow->loader->error); slow->timeout_id = 0; return FALSE; - } else if (slow->loader->eof) { - swfdec_loader_eof (SWFDEC_LOADER (slow)); - slow->timeout_id = 0; - return FALSE; } else { - return TRUE; + gboolean eof; + g_object_get (slow->loader, "eof", &eof, NULL); + if (eof) { +...
2007 Nov 08
0
5 commits - libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c libswfdec/swfdec_resource.c libswfdec/swfdec_resource.h player/swfdec_slow_loader.c test/trace
...ation = duration * 1000; slow->loader = loader; g_signal_connect (loader, "notify", G_CALLBACK (swfdec_slow_loader_notify_cb), slow); size = swfdec_loader_get_size (loader); - if (size) + if (size >= 0) swfdec_loader_set_size (SWFDEC_LOADER (slow), size); slow->timeout_id = g_timeout_add (slow->tick_time, swfdec_slow_loader_tick, slow); swfdec_loader_open (SWFDEC_LOADER (slow), 0); @@ -119,7 +119,7 @@ swfdec_slow_loader_load (SwfdecLoader *loader, SwfdecLoader *parent, /* FIXME: include request and data */ new = swfdec_gtk_loader_new (swfdec_url_get_ur...
2007 Jul 31
0
10 commits - doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_buffer.c libswfdec/swfdec_debugger.c libswfdec/swfdec.h
...100; + slow->duration = duration * 1000; + slow->loader = loader; + g_signal_connect (loader, "notify", G_CALLBACK (swfdec_slow_loader_notify_cb), slow); + size = swfdec_loader_get_size (loader); + if (size) + swfdec_loader_set_size (SWFDEC_LOADER (slow), size); + slow->timeout_id = g_timeout_add (slow->tick_time, swfdec_slow_loader_tick, slow); +} + +static void +swfdec_slow_loader_load (SwfdecLoader *loader, + SwfdecLoaderRequest request, const char *data, gsize data_len) +{ + SwfdecSlowLoader *slow = SWFDEC_SLOW_LOADER (loader); + SwfdecLoader *new; + + /* FIXME:...
2008 Jan 21
0
70 commits - configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_socket.c libswfdec-gtk/swfdec_gtk_socket.h libswfdec-gtk/swfdec_playback_alsa.c
...r_get_size (child)); - } -} - -static void -swfdec_slow_loader_dispose (GObject *object) -{ - SwfdecSlowLoader *slow = SWFDEC_SLOW_LOADER (object); - - g_signal_handlers_disconnect_by_func (slow->loader, swfdec_slow_loader_notify_cb, slow); - g_object_unref (slow->loader); - if (slow->timeout_id) { - g_source_remove (slow->timeout_id); - slow->timeout_id = 0; - } - - G_OBJECT_CLASS (swfdec_slow_loader_parent_class)->dispose (object); -} - -static gboolean -swfdec_slow_loader_tick (gpointer data) -{ - SwfdecSlowLoader *slow = data; - SwfdecBuffer *buffer; - guint total,...