search for: soupmessage

Displaying 8 results from an estimated 8 matches for "soupmessage".

2007 Aug 02
0
15 commits - configure.ac doc/swfdec-sections.txt libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_file_loader.c libswfdec/swfdec_file_loader.h
...SwfdecGtk return; real_uri = soup_uri_to_string (soup_message_get_uri (gtk->message), FALSE); - g_print ("open %s\n", real_uri); swfdec_loader_open (SWFDEC_LOADER (gtk), real_uri); gtk->opened = TRUE; g_free (real_uri); @@ -100,10 +99,8 @@ swfdec_gtk_loader_push (SoupMessage *msg SwfdecBuffer *buffer; swfdec_gtk_loader_ensure_open (gtk); - g_print ("push\n"); buffer = swfdec_buffer_new_and_alloc (msg->response.length); memcpy (buffer->data, msg->response.body, msg->response.length); - g_print (" ... %u bytes\n", msg->r...
2007 Nov 15
0
2 commits - libswfdec-gtk/swfdec_gtk_loader.c player/swfplay.c
...ecGtkLoader *gtk) return; real_uri = soup_uri_to_string (soup_message_get_uri (gtk->message), FALSE); + swfdec_gtk_loader_set_size (gtk); swfdec_loader_open (SWFDEC_LOADER (gtk), real_uri); gtk->opened = TRUE; g_free (real_uri); @@ -101,22 +118,6 @@ swfdec_gtk_loader_push (SoupMessage *msg, gpointer loader) } static void -swfdec_gtk_loader_headers (SoupMessage *msg, gpointer loader) -{ - const char *s = soup_message_get_header (msg->response_headers, "Content-Length"); - unsigned long l; - char *end; - - if (s == NULL) - return; - - errno = 0; - l = str...
2007 Oct 12
0
4 commits - libswfdec-gtk/swfdec_gtk_loader.c
...t-Length header is <= 0 diff --git a/libswfdec-gtk/swfdec_gtk_loader.c b/libswfdec-gtk/swfdec_gtk_loader.c index dcdd22c..0e860b9 100644 --- a/libswfdec-gtk/swfdec_gtk_loader.c +++ b/libswfdec-gtk/swfdec_gtk_loader.c @@ -112,7 +112,8 @@ swfdec_gtk_loader_headers (SoupMessage * errno = 0; l = strtoul (s, &end, 10); - if (errno == 0 && *end == 0) + // FIXME: need a way to allow 0-size files + if (errno == 0 && *end == 0 && l > 0) swfdec_loader_set_size (loader, l); } diff-tree 009525632e76cbc8456bbb1911404f76f9fa7...
2007 Aug 02
1
libswfdec-gtk/swfdec_gtk_loader.c
libswfdec-gtk/swfdec_gtk_loader.c | 1 + 1 files changed, 1 insertion(+) New commits: diff-tree 4d1ee537d4cd388a8b21003496d3511df6f0549d (from ba4f1da69d0c74c45b0b4d92330f2203d258bb49) Author: Benjamin Otte <otte at gnome.org> Date: Thu Aug 2 13:06:55 2007 +0200 keep a reference to the message, since it's unreffed automagically diff --git
2007 Aug 02
0
4 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/swfdec_file_loader.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h player/swfdec_slow_loader.c
...o SwfdecLoader->load() diff --git a/libswfdec-gtk/swfdec_gtk_loader.c b/libswfdec-gtk/swfdec_gtk_loader.c index d2ec771..bc3894a 100644 --- a/libswfdec-gtk/swfdec_gtk_loader.c +++ b/libswfdec-gtk/swfdec_gtk_loader.c @@ -116,14 +116,14 @@ swfdec_gtk_loader_finish (SoupMessage *m } static void -swfdec_gtk_loader_load (SwfdecLoader *loader, +swfdec_gtk_loader_load (SwfdecLoader *loader, SwfdecLoader *parent, SwfdecLoaderRequest request, const char *data, gsize data_len) { const SwfdecURL *url = swfdec_loader_get_url (loader); if (g_ascii_strcasecmp (swfd...
2007 Oct 28
0
4 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_load_object.c
...th, but not a too huge one diff --git a/libswfdec-gtk/swfdec_gtk_loader.c b/libswfdec-gtk/swfdec_gtk_loader.c index f61a999..fb93cf9 100644 --- a/libswfdec-gtk/swfdec_gtk_loader.c +++ b/libswfdec-gtk/swfdec_gtk_loader.c @@ -112,8 +112,7 @@ swfdec_gtk_loader_headers (SoupMessage *msg, gpointer loader) errno = 0; l = strtoul (s, &end, 10); - // FIXME: need a way to allow 0-size files - if (errno == 0 && *end == 0 && l > 0) + if (errno == 0 && *end == 0 && l <= G_MAXLONG) swfdec_loader_set_size (loader, l); }...
2007 Aug 20
0
Branch 'vivi' - 60 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c
...message) { - g_object_unref (gtk->message); - gtk->message = NULL; - } - - G_OBJECT_CLASS (swfdec_gtk_loader_parent_class)->dispose (object); -} - -static void swfdec_gtk_loader_ensure_open (SwfdecGtkLoader *gtk) { char *real_uri; @@ -123,7 +110,7 @@ swfdec_gtk_loader_headers (SoupMessage * } static void -swfdec_gtk_loader_finish (SoupMessage *msg, gpointer loader) +swfdec_gtk_loader_finished (SoupMessage *msg, gpointer loader) { if (SOUP_STATUS_IS_SUCCESSFUL (msg->status_code)) { swfdec_gtk_loader_ensure_open (loader); @@ -136,6 +123,22 @@ swfdec_gtk_loader_finish (...
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
...g.h" #endif -#ifdef HAVE_HTTP #include <libsoup/soup.h> #include <errno.h> -#endif #include <stdlib.h> #include <string.h> #include "swfdec_gtk_loader.h" @@ -55,25 +53,20 @@ struct _SwfdecGtkLoader { SwfdecLoader loader; -#ifdef HAVE_HTTP SoupMessage * message; /* the message we're sending */ gboolean opened; /* set after first bytes of data have arrived */ -#endif }; struct _SwfdecGtkLoaderClass { SwfdecLoaderClass loader_class; -#ifdef HAVE_HTTP SoupSession * session; /* the session used by the loade...