search for: swfdec_gtk_loader_finish

Displaying 6 results from an estimated 6 matches for "swfdec_gtk_loader_finish".

2007 Nov 15
0
2 commits - libswfdec-gtk/swfdec_gtk_loader.c player/swfplay.c
...sg->response_headers, "Content-Length"); - unsigned long l; - char *end; - - if (s == NULL) - return; - - errno = 0; - l = strtoul (s, &end, 10); - if (errno == 0 && *end == 0 && l <= G_MAXLONG) - swfdec_loader_set_size (loader, l); -} - -static void swfdec_gtk_loader_finished (SoupMessage *msg, gpointer loader) { if (SOUP_STATUS_IS_SUCCESSFUL (msg->status_code)) { @@ -136,7 +137,6 @@ swfdec_gtk_loader_dispose (GObject *object) if (gtk->message) { g_signal_handlers_disconnect_by_func (gtk->message, swfdec_gtk_loader_push, gtk); - g_signal_hand...
2007 Aug 02
1
libswfdec-gtk/swfdec_gtk_loader.c
...gtk_loader_load (SwfdecLoader *lo if (data) soup_message_set_request (gtk->message, "appliation/x-www-urlencoded", SOUP_BUFFER_USER_OWNED, (char *) data, data_len); + g_object_ref (gtk->message); soup_session_queue_message (klass->session, gtk->message, swfdec_gtk_loader_finish, gtk); } }
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
...("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->response.length); swfdec_loader_push (loader, buffer); } @@ -112,10 +109,8 @@ swfdec_gtk_loader_finish (SoupMessage *m { if (SOUP_STATUS_IS_SUCCESSFUL (msg->status_code)) { swfdec_gtk_loader_ensure_open (loader); - g_print ("eof\n"); swfdec_loader_eof (loader); } else { - g_print ("error %u\n", msg->status_code); swfdec_loader_error (loader, &quo...
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
...hu Aug 2 14:01:21 2007 +0200 pass the parent loader to 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_str...
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
...tk->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 (SoupMessage *m } static void +swfdec_gtk_l...
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
...fdecLoader *loader, SwfdecLoader *parent, soup_message_set_flags (gtk->message, SOUP_MESSAGE_OVERWRITE_CHUNKS); g_signal_connect (gtk->message, "got-chunk", G_CALLBACK (swfdec_gtk_loader_push), gtk); g_signal_connect (gtk->message, "finished", G_CALLBACK (swfdec_gtk_loader_finished), gtk); - if (data) + if (buffer) soup_message_set_request (gtk->message, "appliation/x-www-urlencoded", - SOUP_BUFFER_USER_OWNED, (char *) data, data_len); + SOUP_BUFFER_USER_OWNED, (char *) buffer->data, buffer->length); g_object_ref (gtk->message);...