Changeset 4778 for pjproject


Ignore:
Timestamp:
Mar 5, 2014 10:16:55 AM (10 years ago)
Author:
bennylp
Message:

Fixed #1743: Unplugging the earpeace while audio is running would cause audio to stop in BB10 10.2.1. This also fix the issue in #1732

File:
1 edited

Legend:

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

    r4730 r4778  
    500500                if (status.status == SND_PCM_STATUS_READY || 
    501501                    status.status == SND_PCM_STATUS_UNDERRUN || 
    502                     status.status == SND_PCM_STATUS_ERROR ) 
     502                    status.status == SND_PCM_STATUS_ERROR || 
     503                    status.status == SND_PCM_STATUS_CHANGE) 
    503504                { 
    504505                    if (snd_pcm_plugin_prepare (stream->pb_pcm, 
     
    584585                if (status.status == SND_PCM_STATUS_READY || 
    585586                        status.status == SND_PCM_STATUS_OVERRUN || 
    586                         status.status == SND_PCM_STATUS_ERROR) 
     587                        status.status == SND_PCM_STATUS_ERROR || 
     588                        status.status == SND_PCM_STATUS_CHANGE) 
    587589                { 
    588590                    if (snd_pcm_plugin_prepare (stream->ca_pcm, 
     
    10351037 
    10361038        /* OS 10.2.1 requires pausing audio stream */ 
     1039        /* No longer necessary! 
     1040         * See https://trac.pjsip.org/repos/ticket/1743 
     1041         */ 
     1042        need_restart = PJ_FALSE; 
     1043        /* 
    10371044        need_restart = (stream->pb_thread != NULL); 
    10381045        if (need_restart) { 
     
    10441051            } 
    10451052        } 
     1053        */ 
    10461054 
    10471055        route = *((pjmedia_aud_dev_route*)value); 
Note: See TracChangeset for help on using the changeset viewer.