00001 #include "stdafx.h" 00002 #include "oggdemuxoutputpin.h" 00003 00004 OggDemuxOutputPin::OggDemuxOutputPin(void) 00005 { 00006 } 00007 00008 OggDemuxOutputPin::~OggDemuxOutputPin(void) 00009 { 00010 } 00011 00012 HRESULT DecideBufferSize(IMemAllocator* inAllocator, ALLOCATOR_PROPERTIES* inPropertyRequest) { 00013 //PURE VIRTUAL - We must implement this method 00014 //This is called by the input pin if it wishes to specify the allocator properties. 00015 //We *should* honour it's request but we don't have to. The output pin gets the final say as it 00016 //is the one that has to fit it's data in there. If the input pin is not happy with it it should not connect ! 00017 00018 //WHAT WE MUST DO: 00019 //a) Change any properties we see fit. 00020 //b) Call SetProperties on the IMemAllcoator interface we were given 00021 //c) Commit the allocator 00022 //========================================================================================== 00023 00024 //Create the structures for setproperties to use 00025 ALLOCATOR_PROPERTIES* locReqAlloc = new ALLOCATOR_PROPERTIES; 00026 ALLOCATOR_PROPERTIES* locActualAlloc = new ALLOCATOR_PROPERTIES; 00027 00028 00029 00030 00031 00032 } 00033 HRESULT CheckMediaType(const CMediaType *pmt) { 00034 00035 }