[gstreamer-bugs] [Bug 405020] [alsa] probing the device-name doesn't seem to work correctly

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Fri Feb 9 00:09:34 PST 2007


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

  GStreamer | gst-plugins-base | Ver: 0.10.10





------- Comment #11 from Snark  2007-02-09 08:07 UTC -------
Eh... if I comment out the line :
gst_element_set_state (elt, GST_STATE_PAUSED);
in audio.c, then I get good results again ; and those results come from :
GST_LOG_OBJECT (obj, "name from pcminfo: %s", GST_STR_NULL (ret));
which means that contrary to what I thought, snd_pcm_info_get_name can get good
results.

Let me try to summarize what is currently done to get a name :
- if opened handle, then
  - try snd_pcm_info_get_name directly (doesn't work here) ;
  - if it didn't work, fallback to non-open case
- if non-opened handle, then
  - try to snd_ctl_open, then
    - if it fails, NULL
    - if it works, then
      - snd_pcm_info_get_name indirectly (works here)
      - if it fails, snd_card_get_name (works here)
      - it this fails too, NULL

Would it fly to :
- try to snd_ctl_open, then
  - if it fails, NULL
  - if it works, then
    - snd_pcm_info_get_name indirectly
    - if it fails, snd_card_get_name
    - if it fails too, NULL
?


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




More information about the Gstreamer-bugs mailing list