Ignore:
Timestamp:
Apr 25, 2012 7:13:05 AM (10 years ago)
Author:
ming
Message:

Re #1446 (misc): Fix possible crash if video ports are destroyed in the wrong order (i.e. client port must be destroyed last).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/test/vid_codec_test.c

    r4049 r4084  
    418418        PJ_PERROR(3, (THIS_FILE, status, "  error")); 
    419419    } 
    420     if (capture) { 
     420    if (capture) 
    421421        pjmedia_vid_port_stop(capture); 
     422    if (renderer) 
     423        pjmedia_vid_port_stop(renderer); 
     424    if (capture) 
    422425        pjmedia_vid_port_destroy(capture); 
    423     } 
    424     if (renderer) { 
    425         pjmedia_vid_port_stop(renderer); 
     426    if (renderer) 
    426427        pjmedia_vid_port_destroy(renderer); 
    427     } 
    428428    if (codec) { 
    429429        pjmedia_event_unsubscribe(NULL, &codec_on_event, &codec_port_data, 
Note: See TracChangeset for help on using the changeset viewer.