Displaying 12 results from an estimated 12 matches for "swfdec_net_stream_update_play".
2007 Dec 29
3
[Bug 13855] New: Assertion failure at the end of a movie
...ntact: swfdec at lists.freedesktop.org
When I play a trailer on www.csfd.cz (try one here:
http://www.csfd.cz/film/224182-ja-legenda-i-am-legend/trailer/ ) and the
playback gets to the end of the clip, swfdec crashes with an assertion failure:
Swfdec-ERROR **: file swfdec_net_stream.c: line 199
(swfdec_net_stream_update_playing): assertion failed: (stream->audio == NULL)
aborting...
(By the way, the progress bar also doesn't work correctly.)
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are...
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
...level);
+ if (!string)
+ return;
+ val = STRING_TO_JSVAL (string);
+ if (!JS_SetProperty (cx, object, "level", &val))
+ return;
+
+ val = OBJECT_TO_JSVAL (object);
+ swfdec_scriptable_execute (SWFDEC_SCRIPTABLE (stream), "onStatus", 1, &val);
+}
+
+static void swfdec_net_stream_update_playing (SwfdecNetStream *stream);
+static void
swfdec_net_stream_video_goto (SwfdecNetStream *stream, guint timestamp)
{
SwfdecBuffer *buffer;
@@ -76,6 +107,15 @@ swfdec_net_stream_video_goto (SwfdecNetS
}
}
}
+ if (stream->next_time <= stream->current_time) {
+ if (swf...
2007 Jun 21
0
Branch 'as' - 5 commits - libswfdec/Makefile.am libswfdec/swfdec_as_strings.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_movie.c libswfdec/swfdec_net_connection.c libswfdec/swfdec_net_stream_as.c libswfdec/swfdec_net_stream.c
...swfdec_player_add_timeout (SWFDEC_PLAYER (SWFDEC_AS_OBJECT (stream)->context), &stream->timeout);
} else {
if (stream->audio) {
/* FIXME: just unref and let it take care of removing itself? */
@@ -146,6 +146,7 @@ swfdec_net_stream_timeout (SwfdecTimeout
static void
swfdec_net_stream_update_playing (SwfdecNetStream *stream)
{
+ SwfdecPlayer *player = SWFDEC_PLAYER (SWFDEC_AS_OBJECT (stream)->context);
gboolean should_play;
should_play = stream->playing; /* checks user-set play/pause */
@@ -155,12 +156,12 @@ swfdec_net_stream_update_playing (Swfdec
if (should_play &am...
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
...- remove leftover g_print debugging
- fixup stuff that was broken due to missing parsing
diff --git a/libswfdec/swfdec_net_stream.c b/libswfdec/swfdec_net_stream.c
index 4ca99ed..078ed49 100644
--- a/libswfdec/swfdec_net_stream.c
+++ b/libswfdec/swfdec_net_stream.c
@@ -104,7 +104,6 @@ swfdec_net_stream_update_playing (Swfdec
should_play &= stream->next_time > stream->current_time;
if (should_play && stream->timeout.callback == NULL) {
SWFDEC_DEBUG ("starting playback");
- g_print ("starting playback\n");
stream->timeout.callback = swfdec_net_s...
2007 Mar 20
0
2 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_net_stream.c
...e <otte@gnome.org>
Date: Tue Mar 20 20:38:40 2007 +0100
don't readd Timeout on EOF
diff --git a/libswfdec/swfdec_net_stream.c b/libswfdec/swfdec_net_stream.c
index e9b251a..09239e2 100644
--- a/libswfdec/swfdec_net_stream.c
+++ b/libswfdec/swfdec_net_stream.c
@@ -164,10 +164,10 @@ swfdec_net_stream_update_playing (Swfdec
{
gboolean should_play;
- should_play = stream->playing;
- should_play &= !stream->buffering;
- should_play &= stream->flvdecoder != NULL;
- //should_play &= stream->next_time > stream->current_time;
+ should_play = stream->playing; /* chec...
2007 Dec 19
6
[Bug 13739] New: rutube.ru player is not working
http://bugs.freedesktop.org/show_bug.cgi?id=13739
Summary: rutube.ru player is not working
Product: swfdec
Version: git
Platform: x86-64 (AMD64)
URL: http://rutube.ru/tracks/38127.html?v=12e2ab9a6d7379339ae
bfb6bff03be7a
OS/Version: Linux (All)
Status: NEW
Severity: normal
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
...fdec_net_stream_video_goto (stream, current);
+ stream->buffering = FALSE;
+ swfdec_net_stream_onstatus (stream, SWFDEC_AS_STR_NetStream_Buffer_Full,
+ SWFDEC_AS_STR_status);
+ }
+ } else {
+ SWFDEC_ERROR ("no video stream, how do we update buffering?");
+ }
+ }
+ swfdec_net_stream_update_playing (stream);
+}
+
+static void
swfdec_net_stream_loader_target_parse (SwfdecLoaderTarget *target,
SwfdecLoader *loader)
{
@@ -200,12 +231,6 @@ swfdec_net_stream_loader_target_parse (S
SwfdecDecoderClass *klass;
gboolean recheck = FALSE;
- if (loader->error) {
- if (stream-&...
2007 Mar 22
0
11 commits - libswfdec/swfdec_color.c libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_movie.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_net_stream.h libswfdec/swfdec_pattern.c libswfdec/swfdec_script.c NEWS test/trace
...00644
--- a/libswfdec/swfdec_net_stream.c
+++ b/libswfdec/swfdec_net_stream.c
@@ -21,6 +21,7 @@
#include "config.h"
#endif
+#include <math.h>
#include "swfdec_net_stream.h"
#include "swfdec_amf.h"
#include "swfdec_audio_flv.h"
@@ -174,6 +175,7 @@ swfdec_net_stream_update_playing (Swfdec
stream->timeout.timestamp = stream->player->time + SWFDEC_MSECS_TO_TICKS (stream->next_time - stream->current_time);
swfdec_player_add_timeout (stream->player, &stream->timeout);
if (stream->flvdecoder->audio) {
+ g_assert (stream->au...
2007 Apr 12
0
Branch 'as' - 15 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h libswfdec/swfdec_as_interpret.c
...object, SWFDEC_AS_STR_LEVEL, &val);
SWFDEC_AS_VALUE_SET_OBJECT (&val, object);
- swfdec_as_object_call (SWFDEC_AS_OBJECT (stream), SWFDEC_AS_STR_ON_STATUS, 1, &val);
+ swfdec_as_object_call (SWFDEC_AS_OBJECT (stream), SWFDEC_AS_STR_ON_STATUS, 1, &val, NULL);
}
static void swfdec_net_stream_update_playing (SwfdecNetStream *stream);
@@ -113,7 +113,7 @@ swfdec_net_stream_video_goto (SwfdecNetS
SWFDEC_ERROR ("could not parse data tag");
} else {
swfdec_as_object_call (SWFDEC_AS_OBJECT (stream),
- SWFDEC_AS_VALUE_GET_STRING (&name), 1, &value);
+ SWFDEC_AS_VALUE_...
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
...mp;val);
- val = OBJECT_TO_JSVAL (object);
- swfdec_scriptable_execute (SWFDEC_SCRIPTABLE (stream), "onStatus", 1, &val);
+ SWFDEC_AS_VALUE_SET_OBJECT (&val, object);
+ swfdec_as_object_call (SWFDEC_AS_OBJECT (stream), SWFDEC_AS_STR_ON_STATUS, 1, &val);
}
static void swfdec_net_stream_update_playing (SwfdecNetStream *stream);
@@ -116,16 +105,17 @@ swfdec_net_stream_video_goto (SwfdecNetS
}
if (stream->next_time <= stream->current_time) {
if (swfdec_flv_decoder_is_eof (stream->flvdecoder)) {
- swfdec_net_stream_onstatus (stream, "NetStream.Play.Stop", &q...
2007 Dec 13
0
libswfdec-gtk/swfdec_gtk_player.c libswfdec/swfdec_as_date.c libswfdec/swfdec_audio.c libswfdec/swfdec_audio_event.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_interval.c libswfdec/swfdec_key_as.c libswfdec/swfdec_mouse_as.c libswfdec/swfdec_movie.c
...(player), size);
/* only setup here, the resource assumes it can access the player via the movie */
diff --git a/libswfdec/swfdec_net_stream.c b/libswfdec/swfdec_net_stream.c
index 35c8c8e..cc821de 100644
--- a/libswfdec/swfdec_net_stream.c
+++ b/libswfdec/swfdec_net_stream.c
@@ -193,7 +193,7 @@ swfdec_net_stream_update_playing (SwfdecNetStream *stream)
if (should_play && stream->timeout.callback == NULL) {
SWFDEC_DEBUG ("starting playback");
stream->timeout.callback = swfdec_net_stream_timeout;
- stream->timeout.timestamp = player->time + SWFDEC_MSECS_TO_TICKS (stream->...
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
...t;
#include "swfdec_debug.h"
#include "swfdec_loader_internal.h"
-#include "swfdec_loadertarget.h"
+#include "swfdec_stream_target.h"
#include "swfdec_resource_request.h"
/* NB: code and level must be rooted gc-strings */
@@ -216,27 +216,27 @@ swfdec_net_stream_update_playing (SwfdecNetStream *stream)
}
}
-/*** SWFDEC_LOADER_TARGET interface ***/
+/*** SWFDEC_STREAM_TARGET interface ***/
static SwfdecPlayer *
-swfdec_net_stream_loader_target_get_player (SwfdecLoaderTarget *target)
+swfdec_net_stream_stream_target_get_player (SwfdecStreamTarget *target)
{...