Displaying 19 results from an estimated 19 matches for "swfdec_loader_set_size".
2007 Mar 20
0
5 commits - configure.ac doc/Makefile.am doc/swfdec-sections.txt libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_net_stream.c
...mount of bytes
diff --git a/doc/swfdec-sections.txt b/doc/swfdec-sections.txt
index 26a98ab..f8a4514 100644
--- a/doc/swfdec-sections.txt
+++ b/doc/swfdec-sections.txt
@@ -22,8 +22,9 @@ swfdec_loader_new_from_file
swfdec_loader_push
swfdec_loader_eof
swfdec_loader_error
-swfdec_loader_get_size
swfdec_loader_set_size
+swfdec_loader_get_size
+swfdec_loader_get_loaded
swfdec_loader_get_filename
swfdec_loader_get_data_type
<SUBSECTION Standard>
diff --git a/libswfdec/swfdec_loader.c b/libswfdec/swfdec_loader.c
index 1fd0e65..69c460f 100644
--- a/libswfdec/swfdec_loader.c
+++ b/libswfdec/swfdec_loader.c
@@...
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
...12,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);
}
commit 4a6886684a3f3c99f303d678425646ba99f2f8fd
Author: Benjamin Otte <otte at gnome.org>
Date: Sun Oct 28 19:04:12 2007 +0100
fix docs
diff --git a/libswfdec/swfdec_loader.c b/libswfdec/swfdec_loader.c
index e79ba1e..ca84656 100644
--- a/libswfdec/swfdec_loader.c
++...
2007 Nov 15
0
2 commits - libswfdec-gtk/swfdec_gtk_loader.c player/swfplay.c
...const char *s = soup_message_get_header (gtk->message->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 (SWFDEC_LOADER (gtk), l);
+}
+
+static void
swfdec_gtk_loader_ensure_open (SwfdecGtkLoader *gtk)
{
char *real_uri;
@@ -83,6 +99,7 @@ swfdec_gtk_loader_ensure_open (SwfdecGtkLoader *gtk)
return;
real_uri = soup_uri_to_string (soup_message_get_uri (gtk->message), FALSE);
+ swfdec_g...
2007 Mar 21
0
4 commits - libswfdec/swfdec_js_movie.c libswfdec/swfdec_script.c player/swfdec_slow_loader.c
...++ b/player/swfdec_slow_loader.c
@@ -29,10 +29,19 @@
G_DEFINE_TYPE (SwfdecSlowLoader, swfdec_slow_loader, SWFDEC_TYPE_LOADER)
static void
+swfdec_slow_loader_notify_cb (SwfdecLoader *child, GParamSpec *pspec, SwfdecLoader *loader)
+{
+ if (g_str_equal (pspec->name, "size")) {
+ swfdec_loader_set_size (loader, swfdec_loader_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->loa...
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
...3a 100644
--- a/doc/swfdec-sections.txt
+++ b/doc/swfdec-sections.txt
@@ -19,9 +19,11 @@ SWFDEC_AUDIO_GET_CLASS
<TITLE>SwfdecLoader</TITLE>
SwfdecLoader
swfdec_loader_new_from_file
+swfdec_loader_open
swfdec_loader_push
swfdec_loader_eof
swfdec_loader_error
+swfdec_loader_get_url
swfdec_loader_set_size
swfdec_loader_get_size
swfdec_loader_get_loaded
@@ -52,6 +54,7 @@ swfdec_url_get_url
swfdec_url_new
swfdec_url_new_relative
<SUBSECTION Standard>
+SWFDEC_TYPE_URL
swfdec_url_get_type
</SECTION>
@@ -116,7 +119,9 @@ swfdec_buffer_queue_pull
swfdec_buffer_queue_pull_buffer
swfde...
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
...l = g_strconcat ("/", swfdec_url_get_path (url), NULL);
+ buffer = swfdec_buffer_new_from_file (real, &error);
if (buffer == NULL) {
- swfdec_loader_error (ret, error->message);
+ swfdec_loader_error (loader, error->message);
g_error_free (error);
} else {
- swfdec_loader_set_size (ret, buffer->length);
- swfdec_loader_push (ret, buffer);
- swfdec_loader_eof (ret);
+ swfdec_loader_set_size (loader, buffer->length);
+ swfdec_loader_push (loader, buffer);
+ swfdec_loader_eof (loader);
}
-
- return ret;
}
static void
swfdec_file_loader_class_init (...
2007 Oct 12
0
4 commits - 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 009525632e76cbc8456bbb1911404f76f9fa72b3 (from parents)
Merge: 7a7aaf0a197ede39fc90d975139558da438665f4 a8bd074e7aa1596bdabff5e033c14f5c284f1e44
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Fri Oct 12 15:37:28 2007 +0300
Merge branch 'master'...
2007 Apr 27
0
swfdec-mozilla: Changes to 'refs/tags/0.4.3'
...use the new SwfdecLoader API to query better information to display on the media info page.
add descriptions for xml and text
Define XP_UNIX and MOZ_X11 instead of including the (internal) mozilla-config.h
add swfmoz_player_remove function
That column is the name
call swfdec_loader_set_size when creating loader
show downloading progress in media dialog
Merge branch 'master' of ssh://company@git.freedesktop.org/git/swfdec-mozilla
fix a nasty leak
update NEWS
release 0.4.3
---
NEWS | 19 ++
configure.ac | 55...
2007 Apr 27
0
swfdec-mozilla: Changes to 'refs/tags/0.4.4'
...use the new SwfdecLoader API to query better information to display on the media info page.
add descriptions for xml and text
Define XP_UNIX and MOZ_X11 instead of including the (internal) mozilla-config.h
add swfmoz_player_remove function
That column is the name
call swfdec_loader_set_size when creating loader
show downloading progress in media dialog
Merge branch 'master' of ssh://company@git.freedesktop.org/git/swfdec-mozilla
fix a nasty leak
update NEWS
release 0.4.3
back to cvs
replace the old code with the new SwfdecGtkPlayer...
2007 Mar 19
5
swfdec-mozilla: Changes to 'master'
configure.ac | 5 +++++
src/plugin.c | 1 -
2 files changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 34275329ed70819ec66a9e90d4c36a5f729c1759
Author: Benjamin Otte <otte@gnome.org>
Date: Mon Mar 19 20:17:27 2007 +0100
Define XP_UNIX and MOZ_X11 instead of including the (internal) mozilla-config.h
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
...+
+ /* FIXME: append query string here? */
+ real = g_strconcat ("/", swfdec_url_get_path (url), NULL);
+ buffer = swfdec_buffer_new_from_file (real, &error);
+ if (buffer == NULL) {
+ swfdec_loader_error (loader, error->message);
+ g_error_free (error);
+ } else {
+ swfdec_loader_set_size (loader, buffer->length);
+ swfdec_loader_open (loader, 0);
+ swfdec_loader_push (loader, buffer);
+ swfdec_loader_eof (loader);
+ }
+}
+
+static void
+swfdec_file_loader_class_init (SwfdecFileLoaderClass *klass)
+{
+ SwfdecLoaderClass *loader_class = SWFDEC_LOADER_CLASS (klass);
+
+...
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
...g_value_set_boxed (value, loader->url);
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
break;
@@ -136,6 +140,13 @@ swfdec_loader_set_property (GObject *obj
if (loader->size == 0 && g_value_get_ulong (value) > 0)
swfdec_loader_set_size (loader, g_value_get_ulong (value));
break;
+ case PROP_URL:
+ loader->url = g_value_dup_boxed (value);
+ if (loader->url == NULL) {
+ g_warning ("must set a valid URL");
+ loader->url = swfdec_url_new ("");
+ }
+ break;
default:...
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
...ze;
+ glong size;
slow->tick_time = 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)
+ 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...
2007 Apr 02
0
4 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_loader.h
...rom_file (filename, &error);
loader = g_object_new (SWFDEC_TYPE_FILE_LOADER, NULL);
if (g_path_is_absolute (filename)) {
@@ -343,9 +320,14 @@ swfdec_loader_new_from_file (const char
g_free (cur);
}
SWFDEC_FILE_LOADER (loader)->dir = g_path_get_dirname (loader->url);
- swfdec_loader_set_size (loader, buf->length);
- swfdec_loader_push (loader, buf);
- swfdec_loader_eof (loader);
+ if (buf == NULL) {
+ swfdec_loader_error (loader, error->message);
+ g_error_free (error);
+ } else {
+ swfdec_loader_set_size (loader, buf->length);
+ swfdec_loader_push (loader, buf...
2007 Nov 01
3
[Bug 13051] New: CNN Cartoon Clicks are not responsive to mouse events
...ction_call_method: no
function named isActive on object unknown
SWFDEC: ERROR: swfdec_loader.c(342): swfdec_loader_error: error in loader
0xc57cb0: Failed to open file
'/home/proski/tmp/swf//POLLSERVER/results/xml/34965.xml': No such file or
directory
(lt-swfplay:4299): Swfdec-CRITICAL **: swfdec_loader_set_size: assertion `size
<= G_MAXLONG' failed
SWFDEC: ERROR: swfdec_loader.c(342): swfdec_loader_error: error in loader
0xc57c40: Failed to open file
'/home/proski/tmp/swf//POLLSERVER/results/xml/34965.xml': No such file or
directory
SWFDEC: WARN : swfdec_as_interpret.c(2389): swfdec_action_...
2007 Aug 26
0
Changes to 'refs/tags/0.5.2'
...d
add toString () for breakpoints
port SwfdecDebugMovies to vivified (doesn't work yet)
disable build of swfdebug
unused variable
ActionDelete and ActionDelete2 push TRUE or FALSE back to the success
fix docs
print a useful error message
implement swfdec_loader_set_size() by reading Content-Length header
disconnect signal handlers before dispose
remove the third argument from swfdec_as_object_set_constructor()
SwfdecAsObject->set() now takes a default_flags parameter
use set_variable_and_flags() instead of doing a seperate set_flags() ca...
2007 Apr 04
0
Branch 'as' - 17 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_loader.h
...rom_file (filename, &error);
loader = g_object_new (SWFDEC_TYPE_FILE_LOADER, NULL);
if (g_path_is_absolute (filename)) {
@@ -343,9 +320,14 @@ swfdec_loader_new_from_file (const char
g_free (cur);
}
SWFDEC_FILE_LOADER (loader)->dir = g_path_get_dirname (loader->url);
- swfdec_loader_set_size (loader, buf->length);
- swfdec_loader_push (loader, buf);
- swfdec_loader_eof (loader);
+ if (buf == NULL) {
+ swfdec_loader_error (loader, error->message);
+ g_error_free (error);
+ } else {
+ swfdec_loader_set_size (loader, buf->length);
+ swfdec_loader_push (loader, buf...
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
...gtk);
+ soup_session_queue_message (klass->session, gtk->message, NULL, NULL);
}
}
diff-tree 58fb9a2cd750b3fb08db924a7c2e52d38b766630 (from c46107bbab094d82091c60aa7abb04c61eb17140)
Author: Benjamin Otte <otte at gnome.org>
Date: Sun Aug 19 17:34:37 2007 +0200
implement swfdec_loader_set_size() by reading Content-Length header
diff --git a/libswfdec-gtk/swfdec_gtk_loader.c b/libswfdec-gtk/swfdec_gtk_loader.c
index 415d418..65897bc 100644
--- a/libswfdec-gtk/swfdec_gtk_loader.c
+++ b/libswfdec-gtk/swfdec_gtk_loader.c
@@ -22,6 +22,8 @@
#endif
#include <libsoup/soup.h>
+#include...
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
...gtk/swfdec-gtk.h>
-
-/*** SwfdecSlowLoader ***/
-
-G_DEFINE_TYPE (SwfdecSlowLoader, swfdec_slow_loader, SWFDEC_TYPE_LOADER)
-
-static void
-swfdec_slow_loader_notify_cb (SwfdecLoader *child, GParamSpec *pspec, SwfdecLoader *loader)
-{
- if (g_str_equal (pspec->name, "size")) {
- swfdec_loader_set_size (loader, swfdec_loader_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->loa...