Displaying 2 results from an estimated 2 matches for "soup_session_cancel_message".
2007 Dec 03
0
libswfdec-gtk/swfdec_gtk_loader.c
...gtk_loader.c
+++ b/libswfdec-gtk/swfdec_gtk_loader.c
@@ -183,11 +183,16 @@ swfdec_gtk_loader_close (SwfdecLoader *loader)
SwfdecGtkLoader *gtk = SWFDEC_GTK_LOADER (loader);
if (gtk->message) {
- SwfdecGtkLoaderClass *klass = SWFDEC_GTK_LOADER_GET_CLASS (gtk);
+ gboolean eof;
- soup_session_cancel_message (klass->session, gtk->message);
- g_object_unref (gtk->message);
- gtk->message = NULL;
+ g_object_get (loader, "eof", &eof, NULL);
+ if (!eof) {
+ SwfdecGtkLoaderClass *klass = SWFDEC_GTK_LOADER_GET_CLASS (gtk);
+
+ soup_session_cancel_message (klass...
2007 Aug 08
0
6 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_loader_internal.h libswfdec/swfdec_net_stream_as.c libswfdec/swfdec_net_stream.c
..._loader.c
@@ -141,6 +141,20 @@ swfdec_gtk_loader_load (SwfdecLoader *lo
}
static void
+swfdec_gtk_loader_close (SwfdecLoader *loader)
+{
+ SwfdecGtkLoader *gtk = SWFDEC_GTK_LOADER (loader);
+
+ if (gtk->message) {
+ SwfdecGtkLoaderClass *klass = SWFDEC_GTK_LOADER_GET_CLASS (gtk);
+
+ soup_session_cancel_message (klass->session, gtk->message);
+ g_object_unref (gtk->message);
+ gtk->message = NULL;
+ }
+}
+
+static void
swfdec_gtk_loader_class_init (SwfdecGtkLoaderClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
@@ -149,6 +163,7 @@ swfdec_gtk_loader_class_init (S...