Ignore:
Timestamp:
Aug 6, 2015 7:10:33 AM (6 years ago)
Author:
nanang
Message:

Fix #1876: Don't restart renderer when only fps is changing, just modify the clock instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c

    r4848 r5149  
    978978        /* Adjust renderer window size to original video size */ 
    979979        pjsua_call_info ci; 
    980         pjsua_vid_win_id wid; 
    981         pjmedia_rect_size size; 
    982980 
    983981        pjsua_call_get_info(call_id, &ci); 
     
    986984            (ci.media[med_idx].dir & PJMEDIA_DIR_DECODING)) 
    987985        { 
     986            pjsua_vid_win_id wid; 
     987            pjmedia_rect_size size; 
     988            pjsua_vid_win_info win_info; 
     989 
    988990            wid = ci.media[med_idx].stream.vid.win_in; 
     991            pjsua_vid_win_get_info(wid, &win_info); 
     992             
    989993            size = event->data.fmt_changed.new_fmt.det.vid.size; 
    990             pjsua_vid_win_set_size(wid, &size); 
    991         } 
    992  
    993         /* Re-arrange video windows */ 
    994         arrange_window(PJSUA_INVALID_ID); 
     994            if (size.w != win_info.size.w || size.h != win_info.size.h) { 
     995                pjsua_vid_win_set_size(wid, &size); 
     996 
     997                /* Re-arrange video windows */ 
     998                arrange_window(PJSUA_INVALID_ID); 
     999            } 
     1000        } 
    9951001    } 
    9961002#else 
Note: See TracChangeset for help on using the changeset viewer.