search for: player_inited

Displaying 8 results from an estimated 8 matches for "player_inited".

2007 Aug 13
0
Branch 'vivi' - 2 commits - vivified/core
...c3bd 100644 --- a/vivified/core/vivi_application.c +++ b/vivified/core/vivi_application.c @@ -122,12 +122,29 @@ vivi_application_new (void) } void +vivi_application_init_player (ViviApplication *app) +{ + SwfdecLoader *loader; + + g_return_if_fail (VIVI_IS_APPLICATION (app)); + + if (app->player_inited || + app->filename == NULL) + return; + + loader = swfdec_file_loader_new (app->filename); + swfdec_player_set_loader (app->player, loader); + app->player_inited = TRUE; +} + +void vivi_application_reset (ViviApplication *app) { g_return_if_fail (VIVI_IS_APPLICATION (app...
2007 Aug 22
0
8 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_sprite_movie_as.c vivified/core
...b2811 100644 --- a/vivified/core/vivi_application.c +++ b/vivified/core/vivi_application.c @@ -157,26 +157,6 @@ vivi_application_new (void) } void -vivi_application_init_player (ViviApplication *app) -{ - SwfdecLoader *loader; - - g_return_if_fail (VIVI_IS_APPLICATION (app)); - - if (app->player_inited) - return; - - if (app->filename == NULL) { - vivi_application_error (app, "no file set to play."); - return; - } - - app->player_inited = TRUE; - loader = swfdec_file_loader_new (app->filename); - swfdec_player_set_loader_with_variables (app->player, loader, a...
2007 Aug 14
0
Branch 'vivi' - 11 commits - libswfdec-gtk/swfdec_gtk_widget.c libswfdec/Makefile.am libswfdec/swfdec.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h vivified/core
...ified/core/vivi_application.c index d822642..585d295 100644 --- a/vivified/core/vivi_application.c +++ b/vivified/core/vivi_application.c @@ -140,7 +140,6 @@ vivi_application_init_player (ViviApplic g_return_if_fail (VIVI_IS_APPLICATION (app)); - g_print ("init\n"); if (app->player_inited) return; @@ -149,7 +148,6 @@ vivi_application_init_player (ViviApplic return; } - g_print ("really init\n"); loader = swfdec_file_loader_new (app->filename); swfdec_player_set_loader (app->player, loader); app->player_inited = TRUE; diff-tree c1e028a0...
2007 Aug 13
0
Branch 'vivi' - 24 commits - configure.ac libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_tag.h vivified/core vivified/dock vivified/ui
...+typedef enum { + VIVI_APPLICATION_STOPPED, + VIVI_APPLICATION_PLAYING, + VIVI_APPLICATION_STEPPING, +} ViviApplicationPlayback; + enum { MESSAGE, LAST_SIGNAL @@ -130,10 +136,16 @@ vivi_application_init_player (ViviApplic g_return_if_fail (VIVI_IS_APPLICATION (app)); - if (app->player_inited || - app->filename == NULL) + g_print ("init\n"); + if (app->player_inited) + return; + + if (app->filename == NULL) { + vivi_application_error (app, "no file set to play."); return; + } + g_print ("really init\n"); loader = swfdec_...
2007 Aug 16
0
Branch 'vivi' - 18 commits - configure.ac doc/swfdec-sections.txt libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_types.h libswfdec/swfdec_player.c vivified/core vivified/ui
...)); - g_assert (app->loop == NULL); /* FIXME: what do we do if we're inside a breakpoint? */ + if (app->loop != NULL) + g_main_loop_quit (app->loop); g_object_unref (app->player); app->player = swfdec_gtk_player_new (SWFDEC_AS_DEBUGGER (app->debugger)); app->player_inited = FALSE; @@ -262,42 +263,25 @@ vivi_application_step_forward (gpointer return FALSE; } -static void +void vivi_application_check (ViviApplication *app) { - gboolean is_playing, is_breakpoint; + gboolean is_breakpoint; /* if we're inside some script code, don't do anything */...
2007 Aug 21
0
Branch 'vivi' - 10 commits - libswfdec/swfdec_button_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c vivified/core vivified/dock vivified/ui
...+ audio = swfdec_gtk_player_get_audio_enabled (SWFDEC_GTK_PLAYER (app->player)); g_object_unref (app->player); app->player = swfdec_gtk_player_new (SWFDEC_AS_DEBUGGER (app->debugger)); + swfdec_gtk_player_set_audio_enabled (SWFDEC_GTK_PLAYER (app->player), audio); app->player_inited = FALSE; g_object_notify (G_OBJECT (app), "player"); } diff-tree 913c4a3ab5636a3864733de41909cef0c847a52a (from e0014e23b2e4e34f777eeeb8bf5001af8cdd3ce5) Author: Benjamin Otte <otte at gnome.org> Date: Tue Aug 21 22:49:48 2007 +0200 improve the assertion message diff --g...
2007 Aug 22
0
163 commits - autogen.sh configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_source.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c
...+ audio = swfdec_gtk_player_get_audio_enabled (SWFDEC_GTK_PLAYER (app->player)); g_object_unref (app->player); app->player = swfdec_gtk_player_new (SWFDEC_AS_DEBUGGER (app->debugger)); + swfdec_gtk_player_set_audio_enabled (SWFDEC_GTK_PLAYER (app->player), audio); app->player_inited = FALSE; g_object_notify (G_OBJECT (app), "player"); } diff-tree 913c4a3ab5636a3864733de41909cef0c847a52a (from e0014e23b2e4e34f777eeeb8bf5001af8cdd3ce5) Author: Benjamin Otte <otte at gnome.org> Date: Tue Aug 21 22:49:48 2007 +0200 improve the assertion message diff --g...
2007 Aug 15
0
Branch 'vivi' - 13 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_debugger.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_types.h vivified/core vivified/ui
...CATION_EXITING, +} ViviApplicationPlayback; + +typedef enum { VIVI_MESSAGE_INPUT, VIVI_MESSAGE_OUTPUT, VIVI_MESSAGE_ERROR @@ -51,7 +58,7 @@ struct _ViviApplication SwfdecPlayer * player; /* the current player */ ViviDebugger * debugger; /* the debugger used in player */ gboolean player_inited; /* if the player is inited already */ - guint playback_state; /* (running, stepping or stopped) */ + ViviApplicationPlayback playback_state; /* (running, stepping or stopped) */ guint playback_count; /* how often to just restart this on breakpoints */ GMainLoop * loop; /* the breakpo...