Changeset 6112 for pjproject/trunk/pjsip/src/pjsua2/media.cpp
- Timestamp:
- Nov 29, 2019 4:21:17 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua2/media.cpp
r6074 r6112 303 303 PJSUA2_RAISE_ERROR2(status, "AudioMediaPlayer::createPlayer()"); 304 304 } 305 status = pjmedia_wav_player_set_eof_cb (port, this, &eof_cb);305 status = pjmedia_wav_player_set_eof_cb2(port, this, &eof_cb); 306 306 if (status != PJ_SUCCESS) { 307 307 pjsua_player_destroy(playerId); … … 351 351 PJSUA2_RAISE_ERROR2(status, "AudioMediaPlayer::createPlaylist()"); 352 352 } 353 status = pjmedia_wav_playlist_set_eof_cb (port, this, &eof_cb);353 status = pjmedia_wav_playlist_set_eof_cb2(port, this, &eof_cb); 354 354 if (status != PJ_SUCCESS) { 355 355 pjsua_player_destroy(playerId); … … 399 399 } 400 400 401 pj_status_tAudioMediaPlayer::eof_cb(pjmedia_port *port,402 401 void AudioMediaPlayer::eof_cb(pjmedia_port *port, 402 void *usr_data) 403 403 { 404 404 PJ_UNUSED_ARG(port); 405 405 AudioMediaPlayer *player = (AudioMediaPlayer*)usr_data; 406 return player->onEof() ? PJ_SUCCESS : PJ_EEOF; 406 407 player->onEof2(); 407 408 } 408 409
Note: See TracChangeset
for help on using the changeset viewer.