[Swfdec-commits] swfdec/swfdec_sprite_movie.c
Pekka Lampila
medar at kemper.freedesktop.org
Wed May 7 13:45:52 PDT 2008
swfdec/swfdec_sprite_movie.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 360b31befbff2f6186a1a8d1b0275585f3510659
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Wed May 7 23:38:42 2008 +0300
Skip StartSound tags when fast forwarding over frames
diff --git a/swfdec/swfdec_sprite_movie.c b/swfdec/swfdec_sprite_movie.c
index fa3fba8..9bc8efa 100644
--- a/swfdec/swfdec_sprite_movie.c
+++ b/swfdec/swfdec_sprite_movie.c
@@ -362,7 +362,7 @@ swfdec_sprite_movie_start_sound (SwfdecMovie *movie, SwfdecBits *bits)
static gboolean
swfdec_sprite_movie_perform_one_action (SwfdecSpriteMovie *movie, guint tag, SwfdecBuffer *buffer,
- gboolean skip_scripts, gboolean first_time)
+ gboolean fast_forward, gboolean first_time)
{
SwfdecMovie *mov = SWFDEC_MOVIE (movie);
SwfdecActor *actor = SWFDEC_ACTOR (movie);
@@ -380,7 +380,7 @@ swfdec_sprite_movie_perform_one_action (SwfdecSpriteMovie *movie, guint tag, Swf
return TRUE;
case SWFDEC_TAG_DOACTION:
SWFDEC_LOG ("SCRIPT action");
- if (!skip_scripts) {
+ if (!fast_forward) {
SwfdecScript *script = swfdec_swf_decoder_get_script (
SWFDEC_SWF_DECODER (mov->resource->decoder), buffer->data);
if (script) {
@@ -412,7 +412,7 @@ swfdec_sprite_movie_perform_one_action (SwfdecSpriteMovie *movie, guint tag, Swf
}
return TRUE;
case SWFDEC_TAG_STARTSOUND:
- swfdec_sprite_movie_start_sound (mov, &bits);
+ if (!fast_forward) swfdec_sprite_movie_start_sound (mov, &bits);
return TRUE;
case SWFDEC_TAG_SHOWFRAME:
if (movie->frame < movie->n_frames) {
More information about the Swfdec-commits
mailing list