search for: context_drain_complet

Displaying 2 results from an estimated 2 matches for "context_drain_complet".

Did you mean: context_drain_complete
2007 Nov 22
0
2 commits - libswfdec-gtk/swfdec_playback_pa.c
...pa, NULL, /* default server */ 0, /* default flags */ @@ -320,14 +332,16 @@ swfdec_playback_close (SwfdecPlayback *sound) REMOVE_HANDLER (sound->player, audio_added, sound); REMOVE_HANDLER (sound->player, audio_removed, sound); - op = pa_context_drain (sound->pa, context_drain_complete, NULL); - if (op == NULL) { - pa_context_disconnect (sound->pa); - pa_context_unref (sound->pa); - } else { - pa_operation_unref (op); + if (sound->pa != NULL) { + op = pa_context_drain (sound->pa, context_drain_complete, NULL); + if (op == NULL) { + pa_context_d...
2007 Nov 08
0
configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec_playback_pa.c
.../* default flags */ + NULL /* spawning api */ + ); + + for (walk = swfdec_player_get_audio (player); walk; walk = walk->next) { + swfdec_stream_open (sound, walk->data); + } + g_main_context_ref (context); + sound->context = context; + return sound; +} + +static void +context_drain_complete (pa_context *pa, void *data) +{ + pa_context_disconnect (pa); + pa_context_unref (pa); +} + +void +swfdec_playback_close (SwfdecPlayback *sound) +{ +#define REMOVE_HANDLER_FULL(obj,func,data,count) G_STMT_START {\ + if (g_signal_handlers_disconnect_by_func ((obj), \ + G_CALLBACK (func), (data))...