Ignore:
Timestamp:
Mar 2, 2011 8:37:31 AM (10 years ago)
Author:
nanang
Message:

Re #1182:

  • Added remote frame-rate detection in to video stream.
  • Fixed bitrate settings in ffmpeg codec.
  • Fixed SDL dev to update internal SDL info when format changed.
  • Minor fixes/updates, e.g:
    • added cleanup steps, fixed logs, etc, in sample app simpleua.c and vid_streamutil.c
    • fixed/added docs of the new APIs in the jitter buffer.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjsip-apps/src/samples/simpleua.c

    r3425 r3435  
    548548    dump_pool_usage(THIS_FILE, &cp); 
    549549 
     550    /* Destroy stream */ 
     551    if (g_med_stream) 
     552        pjmedia_stream_destroy(g_med_stream); 
     553    if (g_med_vstream) 
     554        pjmedia_vid_stream_destroy(g_med_vstream); 
     555 
     556    /* Destroy audio ports */ 
     557    if (g_snd_player) 
     558        pjmedia_snd_port_destroy(g_snd_player); 
     559    if (g_snd_rec) 
     560        pjmedia_snd_port_destroy(g_snd_rec); 
     561 
     562    /* Destroy video ports */ 
     563    if (g_vid_capturer) 
     564        pjmedia_vid_port_destroy(g_vid_capturer); 
     565    if (g_vid_renderer) 
     566        pjmedia_vid_port_destroy(g_vid_renderer); 
     567 
     568    /* Destroy media transports */ 
     569    for (i = 0; i < MAX_MEDIA_CNT; ++i) { 
     570        if (g_med_transport[i]) 
     571            pjmedia_transport_close(g_med_transport[i]); 
     572    } 
     573 
     574    /* Deinit ffmpeg codec */ 
     575    pjmedia_codec_ffmpeg_deinit(); 
     576 
     577    /* Deinit pjmedia endpoint */ 
     578    if (g_med_endpt) 
     579        pjmedia_endpt_destroy(g_med_endpt); 
     580 
     581    /* Deinit pjsip endpoint */ 
     582    if (g_endpt) 
     583        pjsip_endpt_destroy(g_endpt); 
     584 
     585    /* Release pool */ 
    550586    pj_pool_release(pool); 
    551587 
Note: See TracChangeset for help on using the changeset viewer.