Changeset 1790 for pjproject/trunk/pjmedia/src/pjmedia/stream.c
- Timestamp:
- Feb 13, 2008 4:59:29 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/stream.c
r1780 r1790 1400 1400 1401 1401 1402 /* Detach from transport 1403 * MUST NOT hold stream mutex while detaching from transport, as 1404 * it may cause deadlock. See ticket #460 for the details. 1405 */ 1406 if (stream->transport) { 1407 pjmedia_transport_detach(stream->transport, stream); 1408 stream->transport = NULL; 1409 } 1410 1402 1411 /* This function may be called when stream is partly initialized. */ 1403 1412 if (stream->jb_mutex) 1404 1413 pj_mutex_lock(stream->jb_mutex); 1405 1414 1406 1407 /* Detach from transport */1408 if (stream->transport) {1409 (*stream->transport->op->detach)(stream->transport, stream);1410 stream->transport = NULL;1411 }1412 1415 1413 1416 /* Free codec. */
Note: See TracChangeset
for help on using the changeset viewer.