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/third_party/mp3/mp3_port.h

    r1177 r6112  
    113113                               pjmedia_port **p_port ); 
    114114 
     115 
     116#if !DEPRECATED_FOR_TICKET_2251 
    115117/** 
    116118 * Register the callback to be called when the file writing has reached 
     
    134136                                void *user_data, 
    135137                                pj_status_t (*cb)(pjmedia_port *port, 
    136                                                         void *usr_data)); 
     138                                                  void *usr_data)); 
     139#endif 
     140 
     141 
     142/** 
     143 * Register the callback to be called when the file writing has reached 
     144 * certain size. Application can use this callback, for example, to limit 
     145 * the size of the output file. 
     146 * 
     147 * @param port          The file writer port. 
     148 * @param pos           The file position on which the callback will be called. 
     149 * @param user_data     User data to be specified in the callback, and will be 
     150 *                      given on the callback. 
     151 * @param cb            Callback to be called. Note that if 
     152 *                      application wishes to stop the playback, it 
     153 *                      can disconnect the port in the callback, and 
     154 *                      only after all connections have been removed 
     155 *                      could the application safely destroy the port. 
     156 * 
     157 * @return              PJ_SUCCESS on success. 
     158 */ 
     159PJ_DECL(pj_status_t)  
     160pjmedia_mp3_writer_port_set_cb2(pjmedia_port *port, 
     161                                pj_size_t pos, 
     162                                void *user_data, 
     163                                void (*cb)(pjmedia_port *port, 
     164                                           void *usr_data)); 
    137165 
    138166 
Note: See TracChangeset for help on using the changeset viewer.