Displaying 13 results from an estimated 13 matches for "swfdec_flv_decoder_add_movie".
2007 Jul 17
2
swfdec new version
...ompiled.
c- Using 0.5 version in a C++ project is impossible due to delete
operant of _SwfdecAsObjectClass struct. Since delete is a keyword of c++ i
could not compile it. Is there a trick for it? Or the name of operator
should be changed??
2- This version can not play flv files. As you know.
swfdec_flv_decoder_add_movie call aborts program. When this will be
implemented???
I strongly need your replies. Thanks a lot.
--
Uygar G?m??
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/swfdec/attachments/20070717/20c27e2d/attachment.htm
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
...org>
Date: Fri Mar 2 22:52:14 2007 +0100
unref connection and stream after setting them
diff --git a/libswfdec/swfdec_flv_decoder.c b/libswfdec/swfdec_flv_decoder.c
index 831641f..da311d4 100644
--- a/libswfdec/swfdec_flv_decoder.c
+++ b/libswfdec/swfdec_flv_decoder.c
@@ -517,6 +517,8 @@ swfdec_flv_decoder_add_movie (SwfdecFlvD
}
swfdec_video_movie_set_input (SWFDEC_VIDEO_MOVIE (movie), &stream->input);
swfdec_net_stream_set_playing (stream, TRUE);
+ g_object_unref (conn);
+ g_object_unref (stream);
return movie;
}
diff-tree 3631478784432ef1912bd12656721d3bbf3cf29f (from 70509b76bb54d59...
2007 Mar 20
0
4 commits - libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_flv_decoder.h libswfdec/swfdec_movie.c test/trace
...setting the loader
setting the laoder resets the decoder, so a new one would get created
diff --git a/libswfdec/swfdec_flv_decoder.c b/libswfdec/swfdec_flv_decoder.c
index 21e2ff8..7615225 100644
--- a/libswfdec/swfdec_flv_decoder.c
+++ b/libswfdec/swfdec_flv_decoder.c
@@ -656,8 +656,8 @@ swfdec_flv_decoder_add_movie (SwfdecFlvD
/* set up the playback stream */
conn = swfdec_connection_new (SWFDEC_ROOT_MOVIE (parent)->player->jscx);
stream = swfdec_net_stream_new (SWFDEC_ROOT_MOVIE (parent)->player, conn);
- stream->flvdecoder = flv;
swfdec_net_stream_set_loader (stream, SWFDEC_ROOT_MOV...
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
...lvDecoder *flv)
+{
+ g_return_val_if_fail (SWFDEC_IS_FLV_DECODER (flv), TRUE);
+
+ return flv->state == SWFDEC_STATE_EOF;
+}
+
+void
+swfdec_flv_decoder_eof (SwfdecFlvDecoder *flv)
+{
+ g_return_if_fail (SWFDEC_IS_FLV_DECODER (flv));
+
+ flv->state = SWFDEC_STATE_EOF;
+}
+
SwfdecMovie *
swfdec_flv_decoder_add_movie (SwfdecFlvDecoder *flv, SwfdecMovie *parent)
{
@@ -511,10 +550,8 @@ swfdec_flv_decoder_add_movie (SwfdecFlvD
/* set up the playback stream */
conn = swfdec_connection_new (SWFDEC_ROOT_MOVIE (parent)->player->jscx);
stream = swfdec_net_stream_new (SWFDEC_ROOT_MOVIE (parent)->playe...
2007 Jun 09
0
Branch 'as' - libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie_as.c
...tte at gnome.org>
Date: Sun Jun 10 00:19:15 2007 +0200
add a free flag to SwfdecContent
diff --git a/libswfdec/swfdec_flv_decoder.c b/libswfdec/swfdec_flv_decoder.c
index d9fc7f9..2352471 100644
--- a/libswfdec/swfdec_flv_decoder.c
+++ b/libswfdec/swfdec_flv_decoder.c
@@ -653,8 +653,8 @@ swfdec_flv_decoder_add_movie (SwfdecFlvD
video->width = G_MAXUINT;
video->height = G_MAXUINT;
content->graphic = SWFDEC_GRAPHIC (video);
+ content->free = TRUE;
movie = swfdec_movie_new (parent, content);
- g_object_weak_ref (G_OBJECT (movie), (GWeakNotify) swfdec_content_free, content);
g_object_w...
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
...ic gboolean
swfdec_root_movie_loader_target_set_decoder (SwfdecLoaderTarget *target,
SwfdecDecoder *decoder)
{
+ SwfdecRootMovie *movie = SWFDEC_ROOT_MOVIE (target);
+
if (SWFDEC_IS_FLV_DECODER (decoder)) {
+ swfdec_loader_set_data_type (movie->loader, SWFDEC_LOADER_DATA_FLV);
swfdec_flv_decoder_add_movie (SWFDEC_FLV_DECODER (decoder),
SWFDEC_MOVIE (target));
} else if (SWFDEC_IS_SWF_DECODER (decoder)) {
+ swfdec_loader_set_data_type (movie->loader, SWFDEC_LOADER_DATA_SWF);
SWFDEC_ROOT_MOVIE (target)->decoder = decoder;
} else {
g_object_unref (decoder);
diff --git a/libs...
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
..._MOVIE (movie), SWFDEC_MOVIE_INVALID_MATRIX);
- swfdec_movie_invalidate (SWFDEC_MOVIE (movie));
-}
-#endif
-
gboolean
swfdec_flv_decoder_is_eof (SwfdecFlvDecoder *flv)
{
@@ -631,39 +610,3 @@ swfdec_flv_decoder_eof (SwfdecFlvDecoder *flv)
flv->state = SWFDEC_STATE_EOF;
}
-SwfdecMovie *
-swfdec_flv_decoder_add_movie (SwfdecFlvDecoder *flv, SwfdecMovie *parent)
-{
- //g_assert_not_reached ();
- return NULL;
-#if 0
- SwfdecContent *content = swfdec_content_new (0);
- SwfdecMovie *movie;
- SwfdecVideo *video;
- SwfdecConnection *conn;
- SwfdecNetStream *stream;
-
- /* set up the video movie */
- video =...
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
...* cx);
void swfdec_connection_connect (SwfdecConnection * conn,
const char * url);
diff --git a/libswfdec/swfdec_flv_decoder.c b/libswfdec/swfdec_flv_decoder.c
index 00666bc..b5640f7 100644
--- a/libswfdec/swfdec_flv_decoder.c
+++ b/libswfdec/swfdec_flv_decoder.c
@@ -458,6 +458,7 @@ swfdec_flv_decoder_add_movie (SwfdecFlvD
SwfdecContent *content = swfdec_content_new (0);
SwfdecMovie *movie;
SwfdecVideo *video;
+ SwfdecConnection *conn;
SwfdecNetStream *stream;
/* set up the video movie */
@@ -469,7 +470,8 @@ swfdec_flv_decoder_add_movie (SwfdecFlvD
g_object_weak_ref (G_OBJECT (movie),...
2007 Jan 26
0
Branch 'interpreter' - 9 commits - libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_debugger.c libswfdec/swfdec_debugger.h libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_event.c libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c
...* if we're the only child */
+ /* FIXME: check case sensitivity wrt embedding movies of different version */
+ JS_SetContextCaseSensitive (movie->player->jscx,
+ SWFDEC_SWF_DECODER (movie->decoder)->version > 6);
+ }
if (SWFDEC_IS_FLV_DECODER (movie->decoder)) {
swfdec_flv_decoder_add_movie (SWFDEC_FLV_DECODER (movie->decoder),
SWFDEC_MOVIE (movie));
diff --git a/libswfdec/swfdec_script.c b/libswfdec/swfdec_script.c
index 32af30e..e5c205f 100644
--- a/libswfdec/swfdec_script.c
+++ b/libswfdec/swfdec_script.c
@@ -315,8 +315,7 @@ swfdec_action_get_variable (JSContext *c
s = swf...
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
...der_new (player, loader->queue);
+ if (dec == NULL) {
+ SWFDEC_ERROR ("no decoder found");
+ swfdec_loader_set_target (loader, NULL);
+ return;
+ }
+
+ if (SWFDEC_IS_FLV_DECODER (dec)) {
+ swfdec_loader_set_data_type (loader, SWFDEC_LOADER_DATA_FLV);
+ swfdec_flv_decoder_add_movie (SWFDEC_FLV_DECODER (dec), SWFDEC_MOVIE (instance->movie));
+ } else if (SWFDEC_IS_SWF_DECODER (dec)) {
+ swfdec_loader_set_data_type (loader, SWFDEC_LOADER_DATA_SWF);
+ instance->decoder = dec;
+ } else {
+ SWFDEC_FIXME ("implement handling of %s", G_OBJECT_TYP...
2007 Jul 18
0
12 commits - configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_playback_alsa.c libswfdec/jpeg libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.h libswfdec/swfdec_as_context.c
..._decode (decoder, tag->buffer);
+ surface = swfdec_video_decoder_decode (decoder, t->buffer);
if (surface == NULL)
return SWFDEC_STATUS_OK;
dec->width = cairo_image_surface_get_width (surface);
@@ -640,7 +640,8 @@ swfdec_flv_decoder_eof (SwfdecFlvDecoder
SwfdecMovie *
swfdec_flv_decoder_add_movie (SwfdecFlvDecoder *flv, SwfdecMovie *parent)
{
- g_assert_not_reached ();
+ //g_assert_not_reached ();
+ return NULL;
#if 0
SwfdecContent *content = swfdec_content_new (0);
SwfdecMovie *movie;
diff --git a/libswfdec/swfdec_internal.h b/libswfdec/swfdec_internal.h
new file mode 100644
ind...
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
...cPlayer *player
swfdec_movie_queue_update (SWFDEC_MOVIE (movie), SWFDEC_MOVIE_INVALID_MATRIX);
swfdec_movie_invalidate (SWFDEC_MOVIE (movie));
}
+#endif
gboolean
swfdec_flv_decoder_is_eof (SwfdecFlvDecoder *flv)
@@ -643,6 +645,8 @@ swfdec_flv_decoder_eof (SwfdecFlvDecoder
SwfdecMovie *
swfdec_flv_decoder_add_movie (SwfdecFlvDecoder *flv, SwfdecMovie *parent)
{
+ g_assert_not_reached ();
+#if 0
SwfdecContent *content = swfdec_content_new (0);
SwfdecMovie *movie;
SwfdecVideo *video;
@@ -670,5 +674,6 @@ swfdec_flv_decoder_add_movie (SwfdecFlvD
g_object_unref (stream);
return movie;
+#endif
}...
2007 Feb 06
0
109 commits - configure.ac libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_codec_screen.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h
...* if we're the only child */
+ /* FIXME: check case sensitivity wrt embedding movies of different version */
+ JS_SetContextCaseSensitive (movie->player->jscx,
+ SWFDEC_SWF_DECODER (movie->decoder)->version > 6);
+ }
if (SWFDEC_IS_FLV_DECODER (movie->decoder)) {
swfdec_flv_decoder_add_movie (SWFDEC_FLV_DECODER (movie->decoder),
SWFDEC_MOVIE (movie));
diff --git a/libswfdec/swfdec_script.c b/libswfdec/swfdec_script.c
index 32af30e..e5c205f 100644
--- a/libswfdec/swfdec_script.c
+++ b/libswfdec/swfdec_script.c
@@ -315,8 +315,7 @@ swfdec_action_get_variable (JSContext *c
s = swf...