[Bug 743925] New: osxaudiosink won't reconfigure sink caps

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Feb 3 03:52:54 PST 2015


https://bugzilla.gnome.org/show_bug.cgi?id=743925
  GStreamer | gst-plugins-good | 1.4.5

           Summary: osxaudiosink won't reconfigure sink caps
    Classification: Platform
           Product: GStreamer
           Version: 1.4.5
        OS/Version: Mac OS
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-good
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: ilya.konstantinov at gmail.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


Once osxaudiosink's device is open, it fixates on the initial caps and refuses
to accept new caps. This is erroneous since the Audio Unit is can accept a new
ASBD, and GstAudioRingBuffer supports reconfiguration as well.

(This causes a problem, e.g. with interaudiosrc, which might produce a silent
buffer with rate:48000 before producing one coming from the interaudiosink with
actual rate:$MY_PIPELINE_RATE.)

Therefore, we need to change:

static GstCaps *
gst_osx_audio_sink_getcaps (GstBaseSink * sink, GstCaps * filter)
{
   ...
#if 0
    if (buf->acquired && buf->spec.caps) {
      /* Caps are fixed, use what we have */
      ret = gst_caps_ref (buf->spec.caps);
    }
#endif
    ....

I've tested this on iOS 8. I will submit a patch once I test it on OS X too.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list