[gstreamer-bugs] [Bug 360673] [PATCH] Stuttering with SunAudio Sink

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Fri Dec 8 15:06:34 PST 2006


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=360673

  GStreamer | gst-plugins-base | Ver: HEAD CVS


Jan Schmidt changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #77040|0                           |1
        is obsolete|                            |
         AssignedTo|gstreamer-                  |thaytan at mad.scientist.com
                   |bugs at lists.sourceforge.net  |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1




------- Comment #32 from Jan Schmidt  2006-12-08 23:05 UTC -------
Created an attachment (id=77995)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=77995&action=view)
Fix for delaying the write call from racing ahead of the ring buffer.

The problem with silence is (as described elsewhere in the bug report) that
sunaudio will accept 5.5 seconds of audio data (at 44.1khz) before blocking,
while the default GStreamer ringbuffer is 200ms. This causes the audio output
thread to race ahead writing loads of silence to the device. 

This patch fixes that by causing the writing thread to artificially block
(using short nanosleeps) whenever the audio device has 'segtotal - 1' unplayed
segments already queued.

The patch also:
 * Uses the sunaudio debug category for all debug output
 * Implements the _delay() callback to synchronise video playback better
 * Resets the segtotal and segsize values to the parent class defaults (taken
from buffer_time and latency_times of 200ms and 10ms respectively)

The diff is against current CVS head. 


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email




More information about the Gstreamer-bugs mailing list