search for: swfdec_stream_close

Displaying 7 results from an estimated 7 matches for "swfdec_stream_close".

2007 Nov 08
0
configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec_playback_pa.c
...set += samples; + + free(frag); +} + +static void +stream_drain_complete (pa_stream *pa, int success, void *data) +{ + Stream *stream = data; + + pa_stream_disconnect (stream->pa); + pa_stream_unref (stream->pa); + g_object_unref (stream->audio); + g_free (stream); +} + +static void +swfdec_stream_close (Stream *stream) +{ + /* Pull it off of the active stream list. */ + stream->sound->streams = g_list_remove (stream->sound->streams, stream); + + /* If we have created a PA stream, defer freeing until we drain it. */ + if (stream->pa != NULL) { + stream->no_more = 1; + p...
2007 Jul 16
0
configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec_playback_oss.c
...O_OUT); + g_source_set_priority (stream->source, G_PRIORITY_HIGH); + g_source_set_callback (stream->source, (GSourceFunc) handle_stream, stream, + NULL); + g_io_channel_unref (channel); + g_source_attach (stream->source, stream->sound->context); + + return; +} + +static void +swfdec_stream_close (Stream *stream) +{ + close (stream->dsp_fd); + g_source_destroy (stream->source); + g_source_unref (stream->source); + stream->sound->streams = g_list_remove (stream->sound->streams, stream); + g_object_unref (stream->audio); + g_free (stream); +} + +/*** SOUND ***/ +...
2007 Jan 29
0
3 commits - autogen.sh configure.ac player/.gitignore player/Makefile.am player/swfdec_playback_alsa.c player/swfdec_playback.c player/swfdec_playback_none.c
...cm_poll_descriptors_count (ret); - if (stream->n_sources > 0) - stream->sources = g_new0 (GSource *, stream->n_sources); - sound->streams = g_list_prepend (sound->streams, stream); - swfdec_stream_start (stream); - return; - -fail: - snd_pcm_close (ret); -} - -static void -swfdec_stream_close (Stream *stream) -{ - ALSA_TRY (snd_pcm_close (stream->pcm), "failed closing"); - swfdec_stream_remove_handlers (stream); - g_free (stream->sources); - stream->sound->streams = g_list_remove (stream->sound->streams, stream); - g_object_unref (stream->audio); - g...
2007 Jan 31
0
Branch 'interpreter' - 20 commits - autogen.sh configure.ac libswfdec/js libswfdec/swfdec_debug.h libswfdec/swfdec_js.c libswfdec/swfdec_js_color.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_script.c
...cm_poll_descriptors_count (ret); - if (stream->n_sources > 0) - stream->sources = g_new0 (GSource *, stream->n_sources); - sound->streams = g_list_prepend (sound->streams, stream); - swfdec_stream_start (stream); - return; - -fail: - snd_pcm_close (ret); -} - -static void -swfdec_stream_close (Stream *stream) -{ - ALSA_TRY (snd_pcm_close (stream->pcm), "failed closing"); - swfdec_stream_remove_handlers (stream); - g_free (stream->sources); - stream->sound->streams = g_list_remove (stream->sound->streams, stream); - g_object_unref (stream->audio); - g...
2007 Dec 11
9
[Bug 13604] New: Assertion failure when seeking on youtube with pulseaudio backend.
...(gdb) (gdb) (gdb) bt #0 0x00002b6413542fd5 in raise () from /lib/libc.so.6 #1 0x00002b6413544a30 in abort () from /lib/libc.so.6 #2 0x00002b641353c3df in __assert_fail () from /lib/libc.so.6 #3 0x00002aaaafaa7be4 in pa_operation_unref () from /usr/lib/libpulse.so.0 #4 0x00002aaaaf0ddaa6 in swfdec_stream_close () from /opt/swfdec/lib/libswfdec-gtk-0.5.so.4 #5 0x00002aaaaf0ddd78 in audio_removed () from /opt/swfdec/lib/libswfdec-gtk-0.5.so.4 #6 0x00002b6412883a1f in IA__g_closure_invoke (closure=0x2980120, return_value=0x0, n_param_values=2, param_values=0x7fff9bdabc10, invocation_hint=0...
2007 Mar 27
0
15 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/.gitignore libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h
...** sources; /* sources for writing data */ @@ -193,7 +193,7 @@ swfdec_stream_start (Stream *stream) } static void -swfdec_stream_open (Sound *sound, SwfdecAudio *audio) +swfdec_stream_open (SwfdecPlayback *sound, SwfdecAudio *audio) { Stream *stream; snd_pcm_t *ret; @@ -274,7 +274,7 @@ swfdec_stream_close (Stream *stream) static void advance_before (SwfdecPlayer *player, guint msecs, guint audio_samples, gpointer data) { - Sound *sound = data; + SwfdecPlayback *sound = data; GList *walk; for (walk = sound->streams; walk; walk = walk->next) { @@ -288,13 +288,13 @@ advance_before (S...
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
...+ g_return_if_fail (loader == NULL || SWFDEC_IS_SANDBOX (stream->sandbox)); g_return_if_fail (loader == NULL || SWFDEC_IS_LOADER (loader)); if (stream->loader) { - SwfdecStream *lstream = SWFDEC_STREAM (loader); + SwfdecStream *lstream = SWFDEC_STREAM (stream->loader); swfdec_stream_close (lstream); swfdec_stream_set_target (lstream, NULL); g_object_unref (lstream); diff --git a/libswfdec/swfdec_net_stream.h b/libswfdec/swfdec_net_stream.h index 253f8ce..60a74cd 100644 --- a/libswfdec/swfdec_net_stream.h +++ b/libswfdec/swfdec_net_stream.h @@ -26,6 +26,7 @@ #include <l...