Changeset 4708 for pjproject/trunk/pjsip/src/pjsua2/media.cpp
- Timestamp:
- Jan 21, 2014 10:59:25 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua2/media.cpp
r4704 r4708 248 248 AudioMediaPlayer::~AudioMediaPlayer() 249 249 { 250 if (playerId != PJSUA_INVALID_ID) 250 if (playerId != PJSUA_INVALID_ID) { 251 unregisterMediaPort(); 251 252 pjsua_player_destroy(playerId); 253 } 252 254 } 253 255 … … 256 258 throw(Error) 257 259 { 260 if (playerId != PJSUA_INVALID_ID) { 261 PJSUA2_RAISE_ERROR(PJ_EEXISTS); 262 } 263 258 264 pj_str_t pj_name = str2Pj(file_name); 259 265 … … 273 279 throw(Error) 274 280 { 281 if (playerId != PJSUA_INVALID_ID) { 282 PJSUA2_RAISE_ERROR(PJ_EEXISTS); 283 } 284 275 285 pj_str_t pj_files[MAX_FILE_NAMES]; 276 286 unsigned i, count = 0; … … 318 328 AudioMediaRecorder::~AudioMediaRecorder() 319 329 { 320 if (recorderId != PJSUA_INVALID_ID) 330 if (recorderId != PJSUA_INVALID_ID) { 331 unregisterMediaPort(); 321 332 pjsua_recorder_destroy(recorderId); 333 } 322 334 } 323 335 … … 329 341 { 330 342 PJ_UNUSED_ARG(max_size); 343 344 if (recorderId != PJSUA_INVALID_ID) { 345 PJSUA2_RAISE_ERROR(PJ_EEXISTS); 346 } 331 347 332 348 pj_str_t pj_name = str2Pj(file_name);
Note: See TracChangeset
for help on using the changeset viewer.