summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7568906)
plughw provides transparent userspace format conversion if needed.
That is much safer. In fact, I doubt VLC would support all raw hardware
drivers - some have rather weird format requirements.
- if( asprintf( &psz_device, "hw:%d,%d", i_card, i_pcm_device ) == -1 )
- break;
+ if( asprintf( &psz_device, "plughw:%u,%u", i_card, i_pcm_device ) == -1 )
+ continue;
if( asprintf( &psz_descr, "%s: %s (%s)", psz_card_name,
snd_pcm_info_get_name(p_pcm_info), psz_device ) == -1 )
{
free( psz_device );
if( asprintf( &psz_descr, "%s: %s (%s)", psz_card_name,
snd_pcm_info_get_name(p_pcm_info), psz_device ) == -1 )
{
free( psz_device );
}
msg_Dbg( obj, " %s", psz_descr );
}
msg_Dbg( obj, " %s", psz_descr );