Displaying 16 results from an estimated 16 matches for "audio_removed".
2008 Mar 07
7
[Bug 14875] New: crash with oss backend if /dev/dsp can not be opened
...ium
Component: library
AssignedTo: swfdec at lists.freedesktop.org
ReportedBy: riccardo at datahost.it
QAContact: swfdec at lists.freedesktop.org
Latest git, i'm using alsa oss emulation.
Failed to open /dev/dsp
**
** Swfdec-Gtk:ERROR:(swfdec_playback.c:225):audio_removed: code should not be
reached
Program received signal SIGABRT, Aborted.
---Type <return> to continue, or q <return> to quit---
[Switching to Thread 0xb7078a40 (LWP 12545)]
0xb721e546 in raise () from /lib/libc.so.6
(gdb) bt full
#0 0xb721e546 in raise () from /lib/libc.so.6
No symbol ta...
2007 Nov 22
0
2 commits - libswfdec-gtk/swfdec_playback_pa.c
...still have to get put in the list, because swfdec_playback.c expects
+ * to find it in the list for removal later.
+ */
+ if (sound->pa == NULL)
+ return;
+
/* Create our stream */
stream->pa = pa_stream_new(sound->pa,
"swfdec stream",
@@ -237,10 +244,15 @@ audio_removed (SwfdecPlayer *player, SwfdecAudio *audio, SwfdecPlayback *sound)
g_assert_not_reached ();
}
static void
-context_state_callback (pa_context *pa, void *data) {
+context_state_callback (pa_context *pa, void *data)
+{
+ SwfdecPlayback *sound = data;
+
switch (pa_context_get_state(pa)) {
c...
2007 Jul 16
0
configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec_playback_oss.c
...f (audio_samples >= stream->offset) {
+ stream->offset = 0;
+ } else {
+ stream->offset -= audio_samples;
+ }
+ }
+}
+
+static void
+audio_added (SwfdecPlayer *player, SwfdecAudio *audio, SwfdecPlayback *sound)
+{
+ swfdec_stream_open (sound, audio);
+}
+
+static void
+audio_removed (SwfdecPlayer *player, SwfdecAudio *audio, SwfdecPlayback *sound)
+{
+ GList *walk;
+
+ for (walk = sound->streams; walk; walk = walk->next) {
+ Stream *stream = walk->data;
+ if (stream->audio == audio) {
+ swfdec_stream_close (stream);
+ return;
+ }
+ }
+ g_asse...
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
...a;
- if (audio_samples >= stream->offset) {
- stream->offset = 0;
- } else {
- stream->offset -= audio_samples;
- }
- }
-}
-
-static void
-audio_added (SwfdecPlayer *player, SwfdecAudio *audio, Sound *sound)
-{
- swfdec_stream_open (sound, audio);
-}
-
-static void
-audio_removed (SwfdecPlayer *player, SwfdecAudio *audio, Sound *sound)
-{
- GList *walk;
-
- for (walk = sound->streams; walk; walk = walk->next) {
- Stream *stream = walk->data;
- if (stream->audio == audio) {
- swfdec_stream_close (stream);
- return;
- }
- }
- g_assert_not_re...
2007 Nov 08
0
configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec_playback_pa.c
...(audio_samples >= stream->offset) {
+ stream->offset = 0;
+ } else {
+ stream->offset -= audio_samples;
+ }
+ }
+}
+
+static void
+audio_added (SwfdecPlayer *player, SwfdecAudio *audio, SwfdecPlayback *sound)
+{
+ swfdec_stream_open (sound, audio);
+}
+
+static void
+audio_removed (SwfdecPlayer *player, SwfdecAudio *audio, SwfdecPlayback *sound)
+{
+ GList *walk;
+
+ for (walk = sound->streams; walk; walk = walk->next) {
+ Stream *stream = walk->data;
+ if (stream->audio == audio) {
+ swfdec_stream_close (stream);
+ return;
+ }
+ }
+ g_asse...
2007 Aug 03
0
libswfdec-gtk/swfdec_playback_alsa.c
...could not be created. If there is none, it
cannot be removed either.
diff --git a/libswfdec-gtk/swfdec_playback_alsa.c b/libswfdec-gtk/swfdec_playback_alsa.c
index f227781..0b7be3d 100644
--- a/libswfdec-gtk/swfdec_playback_alsa.c
+++ b/libswfdec-gtk/swfdec_playback_alsa.c
@@ -307,7 +307,6 @@ audio_removed (SwfdecPlayer *player, Swf
return;
}
}
- g_assert_not_reached ();
}
SwfdecPlayback *
2007 Apr 03
0
11 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_playback_alsa.c libswfdec-gtk/swfdec_source.c libswfdec/swfdec_cached.c libswfdec/swfdec_font.c libswfdec/swfdec_morphshape.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_script.c
...r = g_object_ref (player);
+ sound->player = player;
g_signal_connect (player, "advance", G_CALLBACK (advance_before), sound);
g_signal_connect (player, "audio-added", G_CALLBACK (audio_added), sound);
g_signal_connect (player, "audio-removed", G_CALLBACK (audio_removed), sound);
@@ -346,7 +346,6 @@ swfdec_playback_close (SwfdecPlayback *s
REMOVE_HANDLER (sound->player, advance_before, sound);
REMOVE_HANDLER (sound->player, audio_added, sound);
REMOVE_HANDLER (sound->player, audio_removed, sound);
- g_object_unref (sound->player);
g_main_c...
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
...a;
- if (audio_samples >= stream->offset) {
- stream->offset = 0;
- } else {
- stream->offset -= audio_samples;
- }
- }
-}
-
-static void
-audio_added (SwfdecPlayer *player, SwfdecAudio *audio, Sound *sound)
-{
- swfdec_stream_open (sound, audio);
-}
-
-static void
-audio_removed (SwfdecPlayer *player, SwfdecAudio *audio, Sound *sound)
-{
- GList *walk;
-
- for (walk = sound->streams; walk; walk = walk->next) {
- Stream *stream = walk->data;
- if (stream->audio == audio) {
- swfdec_stream_close (stream);
- return;
- }
- }
- g_assert_not_re...
2007 Jun 15
0
Branch 'as' - 4 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_sprite.c test/trace
...quot;, command, target);
- return;
}
swfdec_player_launch (player, url, target);
}
diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c
index bcc3952..a5d302c 100644
--- a/libswfdec/swfdec_player.c
+++ b/libswfdec/swfdec_player.c
@@ -293,6 +293,7 @@ enum {
AUDIO_ADDED,
AUDIO_REMOVED,
LAUNCH,
+ FSCOMMAND,
LAST_SIGNAL
};
@@ -887,6 +888,36 @@ swfdec_player_class_init (SwfdecPlayerCl
G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT,
G_TYPE_NONE, 1, SWFDEC_TYPE_AUDIO);
/**
+ * SwfdecPlayer::fscommand:
+ * @player: the #SwfdecPlayer af...
2007 Dec 11
9
[Bug 13604] New: Assertion failure when seeking on youtube with pulseaudio backend.
...544a30 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=0x7fff9bdabaf0)
at /build/buildd/glib2.0-2.14.4/gobject/gclosure.c:490
#7 0x00002b6412...
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
...t;next) {
@@ -288,13 +288,13 @@ advance_before (SwfdecPlayer *player, gu
}
static void
-audio_added (SwfdecPlayer *player, SwfdecAudio *audio, Sound *sound)
+audio_added (SwfdecPlayer *player, SwfdecAudio *audio, SwfdecPlayback *sound)
{
swfdec_stream_open (sound, audio);
}
static void
-audio_removed (SwfdecPlayer *player, SwfdecAudio *audio, Sound *sound)
+audio_removed (SwfdecPlayer *player, SwfdecAudio *audio, SwfdecPlayback *sound)
{
GList *walk;
@@ -308,16 +308,16 @@ audio_removed (SwfdecPlayer *player, Swf
g_assert_not_reached ();
}
-gpointer
+SwfdecPlayback *
swfdec_playback...
2007 Aug 05
0
7 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_object.c libswfdec/swfdec.h libswfdec/swfdec_key.h libswfdec/swfdec_marshal.list libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h
...it a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c
index ff786ce..393519d 100644
--- a/libswfdec/swfdec_player.c
+++ b/libswfdec/swfdec_player.c
@@ -407,6 +407,7 @@ swfdec_player_remove_all_external_action
enum {
INVALIDATE,
ADVANCE,
+ HANDLE_KEY,
HANDLE_MOUSE,
AUDIO_ADDED,
AUDIO_REMOVED,
@@ -890,6 +891,14 @@ swfdec_player_emit_signals (SwfdecPlayer
}
static gboolean
+swfdec_player_do_handle_key (SwfdecPlayer *player, SwfdecKey key, gboolean down)
+{
+ g_assert (key < 256);
+
+ return TRUE;
+}
+
+static gboolean
swfdec_player_do_handle_mouse (SwfdecPlayer *player,
d...
2007 Aug 09
0
Branch 'vivi' - 12 commits - libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec/Makefile.am libswfdec/swfdec_as_array.h libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_debugger.c
...char *filename)
g_object_unref (loader);
goto error;
}
- player = swfdec_player_new ();
+ player = swfdec_player_new (NULL);
g_signal_connect (player, "audio-added", G_CALLBACK (audio_added), &data);
g_signal_connect (player, "audio-removed", G_CALLBACK (audio_removed), &data);
g_signal_connect (player, "advance", G_CALLBACK (render_all_streams), &data);
diff --git a/test/trace/trace.c b/test/trace/trace.c
index 0f986e5..99d6a5a 100644
--- a/test/trace/trace.c
+++ b/test/trace/trace.c
@@ -100,7 +100,7 @@ run_test (gpointer testp, gpointer un...
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
...r = g_object_ref (player);
+ sound->player = player;
g_signal_connect (player, "advance", G_CALLBACK (advance_before), sound);
g_signal_connect (player, "audio-added", G_CALLBACK (audio_added), sound);
g_signal_connect (player, "audio-removed", G_CALLBACK (audio_removed), sound);
@@ -346,7 +346,6 @@ swfdec_playback_close (SwfdecPlayback *s
REMOVE_HANDLER (sound->player, advance_before, sound);
REMOVE_HANDLER (sound->player, audio_added, sound);
REMOVE_HANDLER (sound->player, audio_removed, sound);
- g_object_unref (sound->player);
g_main_c...
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
...advance_before (SwfdecPlayer *player, guint msecs, guint audio_samples, gpointer
static void
audio_added (SwfdecPlayer *player, SwfdecAudio *audio, SwfdecPlayback *sound)
{
- swfdec_stream_open (sound, audio);
+ swfdec_playback_stream_open (sound, audio);
}
static void
@@ -309,7 +309,7 @@ audio_removed (SwfdecPlayer *player, SwfdecAudio *audio, SwfdecPlayback *sound)
for (walk = sound->streams; walk; walk = walk->next) {
Stream *stream = walk->data;
if (stream->audio == audio) {
- swfdec_stream_close (stream);
+ swfdec_playback_stream_close (stream);
retu...
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
...char *filename)
g_object_unref (loader);
goto error;
}
- player = swfdec_player_new ();
+ player = swfdec_player_new (NULL);
g_signal_connect (player, "audio-added", G_CALLBACK (audio_added), &data);
g_signal_connect (player, "audio-removed", G_CALLBACK (audio_removed), &data);
g_signal_connect (player, "advance", G_CALLBACK (render_all_streams), &data);
diff --git a/test/trace/trace.c b/test/trace/trace.c
index 0f986e5..99d6a5a 100644
--- a/test/trace/trace.c
+++ b/test/trace/trace.c
@@ -100,7 +100,7 @@ run_test (gpointer testp, gpointer un...