Changeset 6057


Ignore:
Timestamp:
Aug 28, 2019 3:25:13 PM (3 years ago)
Author:
riza
Message:

Close #2224: De-Initialize ALSA sound device with snd_pcm_drop() instead of snd_pcm_drain() to avoid stuck issue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-audiodev/alsa_dev.c

    r6056 r6057  
    534534    } 
    535535 
    536     snd_pcm_drain (pcm); 
     536    snd_pcm_drop(pcm); 
    537537    TRACE_((THIS_FILE, "pb_thread_func: Stopped")); 
    538538    return PJ_SUCCESS; 
     
    605605        tstamp.u64 += nframes; 
    606606    } 
    607     snd_pcm_drain (pcm); 
     607    snd_pcm_drop(pcm); 
    608608    TRACE_((THIS_FILE, "ca_thread_func: Stopped")); 
    609609 
Note: See TracChangeset for help on using the changeset viewer.