Changeset 5635 for pjproject/trunk/pjsip/src/pjsua2/media.cpp
- Timestamp:
- Aug 1, 2017 7:49:34 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua2/media.cpp
r5581 r5635 352 352 pj_ssize_t pos = pjsua_player_get_pos(playerId); 353 353 if (pos < 0) { 354 PJSUA2_RAISE_ERROR2( -pos, "AudioMediaPlayer::getPos()");354 PJSUA2_RAISE_ERROR2((pj_status_t)-pos, "AudioMediaPlayer::getPos()"); 355 355 } 356 356 return (pj_uint32_t)pos; … … 509 509 } 510 510 511 status = pjmedia_tonegen_play(tonegen, tones.size(), &tones[0],511 status = pjmedia_tonegen_play(tonegen, (unsigned)tones.size(), &tones[0], 512 512 loop? PJMEDIA_TONEGEN_LOOP : 0); 513 513 PJSUA2_CHECK_RAISE_ERROR2(status, "ToneGenerator::play()"); … … 526 526 } 527 527 528 status = pjmedia_tonegen_play_digits(tonegen, digits.size(), &digits[0],528 status = pjmedia_tonegen_play_digits(tonegen, (unsigned)digits.size(), &digits[0], 529 529 loop? PJMEDIA_TONEGEN_LOOP : 0); 530 530 PJSUA2_CHECK_RAISE_ERROR2(status, "ToneGenerator::playDigits()"); … … 572 572 } 573 573 574 digitMap.count = digit_map.size();574 digitMap.count = (unsigned)digit_map.size(); 575 575 if (digitMap.count > PJ_ARRAY_SIZE(digitMap.digits)) 576 576 digitMap.count = PJ_ARRAY_SIZE(digitMap.digits);
Note: See TracChangeset
for help on using the changeset viewer.