[Bug 721740] general stream error with alsasink iec958 audio/x-ac3 passtrough

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Jan 7 15:45:29 PST 2014


https://bugzilla.gnome.org/show_bug.cgi?id=721740
  GStreamer | gst-plugins-base | 1.2.2

--- Comment #7 from Daniel Schürmann <daschuer at gmx.de> 2014-01-07 23:45:25 UTC ---
But this is an ugly hack and finally leads to ac3 stream interpreted as PCM. 
Funny sound ;-) 

I hope that one can lead me to a right solution. 

I have not fully understood who and when alsa->iec958 is set. 
It looks like alsasink_parse_spec() is the only function writes this flag. 
But gdb tells me that there must be an other function. 

I am also wandering how this code works. alsa->iec958 is read, before it is set
from 
alsasink_parse_spec below. If I change the two code blocks, My Amp switches to
Dolby Digital, but still no Sound.   

gst_alsasink_prepare (GstAudioSink * asink, GstAudioRingBufferSpec * spec)
{
  ...

  if (alsa->iec958) {
    snd_pcm_close (alsa->handle);
    alsa->handle = gst_alsa_open_iec958_pcm (GST_OBJECT (alsa), alsa->device);
    if (G_UNLIKELY (!alsa->handle)) {
      goto no_iec958;
    }
  }

  if (!alsasink_parse_spec (alsa, spec))
    goto spec_parse;

-- 
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