hi,

this patch simply set to 0 memory allocated for pa fragments. This brings silence when we are not decoding audio, see youtube.com h264/aac videos. I think it should be backported to 0.8.

thanks,
riccardo
diff --git a/swfdec-gtk/swfdec_playback_pulse.c b/swfdec-gtk/swfdec_playback_pulse.c
index 5aa85f0..e867ac8 100644
--- a/swfdec-gtk/swfdec_playback_pulse.c
+++ b/swfdec-gtk/swfdec_playback_pulse.c
@@ -79,6 +79,7 @@ stream_write_callback (pa_stream *pa,
     g_printerr ("Failed to allocate fragment of size %d\n", (int)bytes);
     return;
   }
+  memset(frag, 0, bytes);
 
   /* Set up our fragment and render swfdec's audio into it. The swfdec audio
    * decoder renders deltas from the existing data in the fragment.
_______________________________________________
Swfdec mailing list
Swfdec@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/swfdec

Reply via email to