Changeset 2455


Ignore:
Timestamp:
Feb 14, 2009 12:17:58 PM (10 years ago)
Author:
nanang
Message:

Fixed possible access violation in conf_switch when port 0/sound device is in PCM mode and its TX buf contains FRAME_TYPE_NONE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/aps-direct/pjmedia/src/pjmedia/conf_switch.c

    r2452 r2455  
    14051405                                     f_src->size >> 1); 
    14061406        } else { /* PJMEDIA_FRAME_TYPE_NONE */ 
    1407             pjmedia_frame_ext *f_dst = (pjmedia_frame_ext*)frame; 
    1408  
    1409             /* Reset TX buffer */ 
    1410             f_dst->base.type = PJMEDIA_FRAME_TYPE_NONE; 
    1411             f_dst->samples_cnt = 0; 
    1412             f_dst->subframe_cnt = 0; 
     1407            pjmedia_frame_ext *f_src_ = (pjmedia_frame_ext*)f_src; 
     1408 
     1409            /* Reset source/TX buffer */ 
     1410            f_src_->base.size = 0; 
     1411            f_src_->samples_cnt = 0; 
     1412            f_src_->subframe_cnt = 0; 
    14131413        } 
    14141414    } while (0); 
Note: See TracChangeset for help on using the changeset viewer.