Ignore:
Timestamp:
Jun 13, 2011 11:48:37 AM (13 years ago)
Author:
ming
Message:

Fixed #1286: Stride issue in dshow renderer (Video Mixing Renderer)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia-videodev/dshow_dev.c

    r3580 r3582  
    5454IBaseFilter* SourceFilter_Create(SourceFilter **pSrc); 
    5555HRESULT SourceFilter_Deliver(SourceFilter *src, void *buf, long size); 
    56 void SourceFilter_SetBufferSize(SourceFilter *src, long size); 
     56void SourceFilter_SetMediaType(SourceFilter *src, AM_MEDIA_TYPE *pmt); 
    5757 
    5858typedef struct dshow_fmt_info 
     
    6666    {PJMEDIA_FORMAT_YUY2, &MEDIASUBTYPE_YUY2} , 
    6767    {PJMEDIA_FORMAT_RGB24, &MEDIASUBTYPE_RGB24} , 
    68 //    {PJMEDIA_FORMAT_RGB32, &MEDIASUBTYPE_RGB32} , 
    69     //{PJMEDIA_FORMAT_IYUV, &MEDIASUBTYPE_IYUV} , 
     68    {PJMEDIA_FORMAT_RGB32, &MEDIASUBTYPE_RGB32} , 
     69    {PJMEDIA_FORMAT_IYUV, &MEDIASUBTYPE_IYUV} , 
    7070}; 
    7171 
     
    675675    mediatype->lSampleSize = DIBSIZE(video_info->bmiHeader); 
    676676    if (graph->csource_filter) 
    677         SourceFilter_SetBufferSize(graph->csource_filter, 
    678                                    mediatype->lSampleSize); 
     677        SourceFilter_SetMediaType(graph->csource_filter, 
     678                                  mediatype); 
    679679 
    680680    hr = IFilterGraph_AddFilter(graph->filter_graph, 
Note: See TracChangeset for help on using the changeset viewer.