Ignore:
Timestamp:
Nov 29, 2019 4:21:17 AM (4 years ago)
Author:
ming
Message:

Fixed #2251: Deadlock between PJSUA LOCK and conference mutex

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/wav_port.h

    r4793 r6112  
    152152 
    153153 
     154#if !DEPRECATED_FOR_TICKET_2251 
    154155/** 
    155156 * Register a callback to be called when the file reading has reached the 
     
    167168 * @return              PJ_SUCCESS on success. 
    168169 */ 
    169 PJ_DECL(pj_status_t)  
     170PJ_DECL(pj_status_t) 
    170171pjmedia_wav_player_set_eof_cb( pjmedia_port *port, 
    171172                               void *user_data, 
    172173                               pj_status_t (*cb)(pjmedia_port *port, 
    173174                                                 void *usr_data)); 
     175#endif 
     176 
     177 
     178/** 
     179 * Register a callback to be called when the file reading has reached the 
     180 * end of file. If the file is set to play repeatedly, then the callback 
     181 * will be called multiple times. Note that only one callback can be  
     182 * registered for each file port. 
     183 * 
     184 * @param port          The file player port. 
     185 * @param user_data     User data to be specified in the callback 
     186 * @param cb            Callback to be called. Note that if 
     187 *                      application wishes to stop the playback, it 
     188 *                      can disconnect the port in the callback, and 
     189 *                      only after all connections have been removed 
     190 *                      could the application safely destroy the port. 
     191 * 
     192 * @return              PJ_SUCCESS on success. 
     193 */ 
     194PJ_DECL(pj_status_t) 
     195pjmedia_wav_player_set_eof_cb2(pjmedia_port *port, 
     196                               void *user_data, 
     197                               void (*cb)(pjmedia_port *port, 
     198                                          void *usr_data)); 
     199 
    174200 
    175201/** 
     
    256282 
    257283 
     284#if !DEPRECATED_FOR_TICKET_2251 
    258285/** 
    259286 * Register the callback to be called when the file writing has reached 
     
    278305                                pj_status_t (*cb)(pjmedia_port *port, 
    279306                                                  void *usr_data)); 
     307#endif 
     308 
     309 
     310/** 
     311 * Register the callback to be called when the file writing has reached 
     312 * certain size. Application can use this callback, for example, to limit 
     313 * the size of the output file. 
     314 * 
     315 * @param port          The file writer port. 
     316 * @param pos           The file position on which the callback will be called. 
     317 * @param user_data     User data to be specified in the callback, and will be 
     318 *                      given on the callback. 
     319 * @param cb            Callback to be called. Note that if 
     320 *                      application wishes to stop the writing, it 
     321 *                      can disconnect the port in the callback, and 
     322 *                      only after all connections have been removed 
     323 *                      could the application safely destroy the port. 
     324 * 
     325 * @return              PJ_SUCCESS on success. 
     326 */ 
     327PJ_DECL(pj_status_t)  
     328pjmedia_wav_writer_port_set_cb2(pjmedia_port *port, 
     329                                pj_size_t pos, 
     330                                void *user_data, 
     331                                void (*cb)(pjmedia_port *port, 
     332                                           void *usr_data)); 
    280333 
    281334 
Note: See TracChangeset for help on using the changeset viewer.