search for: swfdecloadertarget

Displaying 20 results from an estimated 41 matches for "swfdecloadertarget".

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
...get freed */ G_OBJECT_CLASS (swfdec_player_parent_class)->dispose (object); diff-tree 5b36ea83a867d29e554cd2cfc1170f056c0fa52f (from de8205950a51b5bf5ad7645fb67eb9b9c21a0b4e) Author: Benjamin Otte <otte at gnome.org> Date: Wed Aug 1 16:33:57 2007 +0200 step 2 in loading reorg: SwfdecLoaderTarget SwfdecLoaderTarget now has 3 vfuncs: open, parse, eof and error. They are queued to be called whenever they were called on the loader. diff --git a/libswfdec/swfdec_loader.c b/libswfdec/swfdec_loader.c index 285ffc2..cddbe10 100644 --- a/libswfdec/swfdec_loader.c +++ b/libswfdec/swfde...
2007 Oct 19
0
8 commits - libswfdec/swfdec_movie_as_drawing.c libswfdec/swfdec_player.c libswfdec/swfdec_resource.c libswfdec/swfdec_resource.h libswfdec/swfdec_sprite_movie.c
...--git a/libswfdec/swfdec_resource.c b/libswfdec/swfdec_resource.c index 7352e06..d9be02e 100644 --- a/libswfdec/swfdec_resource.c +++ b/libswfdec/swfdec_resource.c @@ -88,9 +88,8 @@ swfdec_resource_loader_target_image (SwfdecResource *instance) } static void -swfdec_resource_loader_target_open (SwfdecLoaderTarget *target, SwfdecLoader *loader) +swfdec_resource_open (SwfdecResource *instance, SwfdecLoader *loader) { - SwfdecResource *instance = SWFDEC_RESOURCE (target); const char *query; query = swfdec_url_get_query (swfdec_loader_get_url (loader)); @@ -105,9 +104,19 @@ swfdec_resource_loader_targ...
2007 Nov 10
0
7 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_resource.c libswfdec/swfdec_resource.h libswfdec/swfdec_sprite_movie_as.c test/trace
...te: Sat Nov 10 19:35:20 2007 +0100 seems I never compiled this :o diff --git a/libswfdec/swfdec_resource.c b/libswfdec/swfdec_resource.c index 9ad4105..c93d151 100644 --- a/libswfdec/swfdec_resource.c +++ b/libswfdec/swfdec_resource.c @@ -242,7 +242,7 @@ swfdec_resource_loader_target_parse (SwfdecLoaderTarget *target, SwfdecLoader *l SwfdecStatus status; guint parsed; - if (dec == NULL && swfdec_buffer_queue_get_offset (loader->queue == 0)) { + if (dec == NULL && swfdec_buffer_queue_get_offset (loader->queue) == 0) { if (swfdec_buffer_queue_get_depth (loader->queu...
2007 Mar 01
0
11 commits - libswfdec/Makefile.am libswfdec/swfdec_connection.c libswfdec/swfdec_connection.h libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_js.c libswfdec/swfdec_js_connection.c libswfdec/swfdec_js.h libswfdec/swfdec_js_net_stream.c
...quot; +#include "swfdec_debug.h" +#include "swfdec_loadertarget.h" +#include "swfdec_player_internal.h" +#include "js/jsapi.h" +#include "js/jsinterp.h" + +/*** SWFDEC_LOADER_TARGET ***/ + +static SwfdecPlayer * +swfdec_xml_loader_target_get_player (SwfdecLoaderTarget *target) +{ + SwfdecXml *xml = SWFDEC_XML (target); + + return xml->player; +} + +static void +swfdec_xml_ondata (SwfdecXml *xml) +{ + JSContext *cx = SWFDEC_SCRIPTABLE (xml)->jscx; + JSObject *obj = SWFDEC_SCRIPTABLE (xml)->jsobj; + jsval val, fun; + JSString *string; + + if (!JS_G...
2007 Nov 12
0
13 commits - libswfdec/Makefile.am libswfdec/swfdec_decoder.c libswfdec/swfdec_decoder.h libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_flv_decoder.h libswfdec/swfdec_image.c libswfdec/swfdec_image_decoder.c libswfdec/swfdec_image_decoder.h
...s[skip], args, sizeof (SwfdecAsValue) * n_args); swfdec_as_object_call (SWFDEC_AS_OBJECT (resource->clip_loader), SWFDEC_AS_STR_broadcastMessage, n_args + skip, vals, NULL); - return SWFDEC_SPRITE_MOVIE (movie); } static void @@ -311,7 +315,6 @@ swfdec_resource_loader_target_eof (SwfdecLoaderTarget *target, SwfdecLoader *loa { SwfdecResource *resource = SWFDEC_RESOURCE (target); SwfdecAsValue val; - SwfdecSpriteMovie *movie; swfdec_resource_emit_signal (resource, SWFDEC_AS_STR_onLoadProgress, TRUE, NULL, 0); if (resource->decoder) { @@ -321,14 +324,8 @@ swfdec_resource_load...
2007 Nov 07
0
7 commits - doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_widget.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_decoder.c libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_movie_asprops.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c
...sage) +{ + SwfdecAsValue vals[2]; + + SWFDEC_AS_VALUE_SET_STRING (&vals[0], message); + SWFDEC_AS_VALUE_SET_INT (&vals[1], 0); + + swfdec_resource_emit_signal (resource, SWFDEC_AS_STR_onLoadError, FALSE, vals, 2); } static void @@ -144,7 +173,8 @@ swfdec_resource_loader_target_open (SwfdecLoaderTarget *target, SwfdecLoader *lo SWFDEC_INFO ("set manual movie variables: %s", instance->variables); swfdec_movie_set_variables (SWFDEC_MOVIE (instance->movie), instance->variables); } - swfdec_resource_emit_signal (instance, SWFDEC_AS_STR_onLoadStart, NULL, 0); + swfdec...
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
...--git a/libswfdec/swfdec_swf_instance.c b/libswfdec/swfdec_swf_instance.c index 7f82971..df6b252 100644 --- a/libswfdec/swfdec_swf_instance.c +++ b/libswfdec/swfdec_swf_instance.c @@ -72,6 +72,23 @@ swfdec_swf_instance_loader_target_image } static void +swfdec_swf_instance_loader_target_open (SwfdecLoaderTarget *target, SwfdecLoader *loader) +{ + SwfdecSwfInstance *instance = SWFDEC_SWF_INSTANCE (target); + const char *query; + + query = swfdec_url_get_query (swfdec_loader_get_url (loader)); + if (query) { + SWFDEC_INFO ("set url query movie variables: %s", query); + swfdec_movie_set_v...
2007 Aug 18
0
8 commits - libswfdec/Makefile.am libswfdec/swfdec_as_strings.c libswfdec/swfdec_load_object_as.c libswfdec/swfdec_load_object_as.h libswfdec/swfdec_load_object.c libswfdec/swfdec_load_object.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h
...SWFDEC_AS_VALUE_SET_UNDEFINED (&val); } - swfdec_as_object_call (load_object->target, SWFDEC_AS_STR_onData, 1, &val, NULL); + swfdec_as_object_call (load_object->target, SWFDEC_AS_STR_onData, 1, &val, + NULL); } static void -swfdec_load_object_loader_target_error (SwfdecLoaderTarget *target, SwfdecLoader *loader) +swfdec_load_object_loader_target_error (SwfdecLoaderTarget *target, + SwfdecLoader *loader) { SwfdecLoadObject *load_object = SWFDEC_LOAD_OBJECT (target); @@ -79,7 +84,8 @@ swfdec_load_object_loader_target_error ( } static void -swfdec_load_object_loader...
2007 Nov 08
0
libswfdec/swfdec_load_object.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_resource.c libswfdec/swfdec_resource.h
...source), FALSE); - player = SWFDEC_PLAYER (SWFDEC_AS_OBJECT (resource->movie)->context); - return resource->movie == player->roots->data; + return resource->movie == resource->player->roots->data; } static SwfdecPlayer * swfdec_resource_loader_target_get_player (SwfdecLoaderTarget *target) { - return SWFDEC_PLAYER (SWFDEC_AS_OBJECT (SWFDEC_RESOURCE (target)->movie)->context); + return SWFDEC_RESOURCE (target)->player; } static void @@ -158,12 +155,60 @@ swfdec_resource_emit_error (SwfdecResource *resource, const char *message) swfdec_resource_emit_signal (...
2007 Mar 16
0
libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_loader_internal.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_root_movie.c libswfdec/swfdec_xml.c
...ATA_XML, + SWFDEC_LOADER_DATA_TEXT +} SwfdecLoaderDataType; typedef struct _SwfdecLoader SwfdecLoader; typedef struct _SwfdecLoaderClass SwfdecLoaderClass; @@ -46,6 +53,7 @@ struct _SwfdecLoader char * error; /* if there's an error (from parsing the loader) */ gpointer target; /* SwfdecLoaderTarget that gets notified about loading progress */ SwfdecBufferQueue * queue; /* SwfdecBufferQueue managing the input buffers */ + SwfdecLoaderDataType data_type; /* type this stream is in (identified by swfdec) */ }; struct _SwfdecLoaderClass @@ -68,6 +76,11 @@ void swfdec_loader_eof (SwfdecL...
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
...decoder This fixes Youtube playback inside a browser diff --git a/libswfdec/swfdec_net_stream.c b/libswfdec/swfdec_net_stream.c index d4ac232..93493ca 100644 --- a/libswfdec/swfdec_net_stream.c +++ b/libswfdec/swfdec_net_stream.c @@ -281,8 +281,11 @@ swfdec_net_stream_loader_target_parse (SwfdecLoaderTarget *target, status = SWFDEC_STATUS_OK; do { SwfdecBuffer *buffer = swfdec_buffer_queue_pull_buffer (loader->queue); + if (buffer == NULL) + break; + status &= ~SWFDEC_STATUS_NEEDBITS; status |= klass->parse (SWFDEC_DECODER (stream->flvdecoder), buffer); - } whi...
2007 Oct 18
0
18 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_flash_security.c
...depth); gboolean swfdec_player_fscommand (SwfdecPlayer * player, diff --git a/libswfdec/swfdec_resource.c b/libswfdec/swfdec_resource.c index 21c8a82..4f2a6be 100644 --- a/libswfdec/swfdec_resource.c +++ b/libswfdec/swfdec_resource.c @@ -53,18 +53,26 @@ swfdec_resource_loader_target_get_player (SwfdecLoaderTarget *target) } static void -swfdec_resource_allow_network (SwfdecPlayer *player) +swfdec_resource_check_rights (SwfdecResource *resource) { - SwfdecFlashSecurity *sec; + SwfdecFlashSecurity *sec = SWFDEC_FLASH_SECURITY (resource); + SwfdecSwfDecoder *dec = SWFDEC_SWF_DECODER (resource->decod...
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
...void +swfdec_loader_close (SwfdecLoader *loader) +{ + SwfdecLoaderClass *klass; + + g_return_if_fail (SWFDEC_IS_LOADER (loader)); + klass = SWFDEC_LOADER_GET_CLASS (loader); + + if (klass->close) + klass->close (loader); +} + +void swfdec_loader_set_target (SwfdecLoader *loader, SwfdecLoaderTarget *target) { g_return_if_fail (SWFDEC_IS_LOADER (loader)); diff --git a/libswfdec/swfdec_loader.h b/libswfdec/swfdec_loader.h index f0bd717..5fc561f 100644 --- a/libswfdec/swfdec_loader.h +++ b/libswfdec/swfdec_loader.h @@ -76,6 +76,8 @@ struct _SwfdecLoaderClass SwfdecLoaderRequest reque...
2007 Mar 14
0
10 commits - libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_flv_decoder.h libswfdec/swfdec_js_global.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_loadertarget.c
...SWFDEC_DEBUG ("starting playback"); stream->timeout.callback = swfdec_net_stream_timeout; @@ -135,58 +176,89 @@ swfdec_net_stream_loader_target_get_play return SWFDEC_NET_STREAM (target)->player; } -static SwfdecDecoder * -swfdec_net_stream_loader_target_get_decoder (SwfdecLoaderTarget *target) -{ - return SWFDEC_DECODER (SWFDEC_NET_STREAM (target)->flvdecoder); -} - -static gboolean -swfdec_net_stream_loader_target_set_decoder (SwfdecLoaderTarget *target, - SwfdecDecoder *decoder) +static void +swfdec_net_stream_loader_target_parse (SwfdecLoaderTarget *target, + Swfde...
2007 Mar 02
0
12 commits - libswfdec/Makefile.am libswfdec/swfdec_audio_flv.c libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_js.c libswfdec/swfdec_js.h libswfdec/swfdec_js_video.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h
...amp; stream->timeout.callback != NULL) { - g_print ("stopping playback\n"); if (stream->audio) { SWFDEC_LOG ("stopping audio"); swfdec_audio_remove (stream->audio); @@ -147,11 +145,14 @@ static gboolean swfdec_net_stream_loader_target_set_decoder (SwfdecLoaderTarget *target, SwfdecDecoder *decoder) { + SwfdecNetStream *stream = SWFDEC_NET_STREAM (target); + if (!SWFDEC_IS_FLV_DECODER (decoder)) { g_object_unref (decoder); return FALSE; } - SWFDEC_NET_STREAM (target)->flvdecoder = SWFDEC_FLV_DECODER (decoder); + stream->flvdecoder...
2007 Nov 07
0
36 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h
.../* queue for parsing */ }; struct _SwfdecFlvDecoderClass { diff --git a/libswfdec/swfdec_net_stream.c b/libswfdec/swfdec_net_stream.c index 2355536..91949ef 100644 --- a/libswfdec/swfdec_net_stream.c +++ b/libswfdec/swfdec_net_stream.c @@ -261,7 +261,7 @@ swfdec_net_stream_loader_target_parse (SwfdecLoaderTarget *target, { SwfdecNetStream *stream = SWFDEC_NET_STREAM (target); SwfdecDecoderClass *klass; - gboolean recheck = FALSE; + SwfdecStatus status; if (loader->state != SWFDEC_LOADER_STATE_EOF && swfdec_buffer_queue_get_depth (loader->queue) == 0) { SWFDEC_INFO ("...
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
...to func */ +}; + +static void +swfdec_policy_file_request_free (SwfdecPolicyFileRequest *request) +{ + swfdec_url_free (request->url); + g_slice_free (SwfdecPolicyFileRequest, request); +} + /*** PARSING THE FILE ***/ static void @@ -108,13 +122,46 @@ swfdec_policy_file_target_get_player (SwfdecLoaderTarget *target) } static void +swfdec_policy_file_finished_loading (SwfdecPolicyFile *file, const char *text) +{ + SwfdecPlayerPrivate *priv; + SwfdecPolicyFile *next; + GList *link; + + swfdec_loader_set_target (file->stream, NULL); + file->stream = NULL; + + if (text) + swfdec_policy_...
2007 Nov 07
0
2 commits - libswfdec/swfdec_resource.c libswfdec/swfdec_text_field_movie.c
...7 +0200 Fix compiler warning in swfdec_resource_loader_target_error diff --git a/libswfdec/swfdec_resource.c b/libswfdec/swfdec_resource.c index d6b5703..18abce4 100644 --- a/libswfdec/swfdec_resource.c +++ b/libswfdec/swfdec_resource.c @@ -275,6 +275,7 @@ swfdec_resource_loader_target_error (SwfdecLoaderTarget *target, SwfdecLoader *l case SWFDEC_RESOURCE_NEW: case SWFDEC_RESOURCE_COMPLETE: case SWFDEC_RESOURCE_DONE: + default: g_assert_not_reached (); message = SWFDEC_AS_STR_EMPTY; break; commit ac6e33e3bac8b999c38dd8454c4b9978f2dd3bd8 Author: Pekka Lampila <pek...
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
...object); } swfdec_as_stack_pop (cx); } diff --git a/libswfdec/swfdec_load_object.c b/libswfdec/swfdec_load_object.c index 09ac8c8..ebd6fdc 100644 --- a/libswfdec/swfdec_load_object.c +++ b/libswfdec/swfdec_load_object.c @@ -41,14 +41,18 @@ static void swfdec_load_object_loader_target_parse (SwfdecLoaderTarget *target, SwfdecLoader *loader) { - SwfdecAsValue val; SwfdecLoadObject *load_object = SWFDEC_LOAD_OBJECT (target); + SwfdecAsValue val; + glong size; - SWFDEC_AS_VALUE_SET_INT (&val, swfdec_loader_get_loaded (loader)); + SWFDEC_AS_VALUE_SET_NUMBER (&val, swfdec_loader_get_lo...
2007 Jan 14
0
Changes to 'refs/tags/0.4.1'
...DECLS / G_END_DECLS document swfdec_buffer_queue_peek Fix up SwfdecBits for the big endian versions needed for FLV catch a case with setting the debug level wrong make swfdec_buffer_get_bits return NULL if no more data available add Nellymoser 8kHz codec Invent a SwfdecLoaderTarget interface for objects consuming a loader fix typo name variables correctly, so gtk-doc finds them improve comment change iteration semantics (changes public API) add video codecs Merge branch 'master' of ssh://company@git.freedesktop.org/git/swfdec...