Mercurial > mplayer.hg
comparison loader/dshow/DS_AudioDecoder.c @ 3063:004e3199fee0
mplayer integration
author | arpi |
---|---|
date | Thu, 22 Nov 2001 03:16:31 +0000 |
parents | 24fa494bedb1 |
children | 0c0042de1f95 |
comparison
equal
deleted
inserted
replaced
3062:7ea7e5fce639 | 3063:004e3199fee0 |
---|---|
73 this->m_sDestType.pbFormat=this->m_sVhdr2; | 73 this->m_sDestType.pbFormat=this->m_sVhdr2; |
74 | 74 |
75 /*try*/ | 75 /*try*/ |
76 { | 76 { |
77 ALLOCATOR_PROPERTIES props, props1; | 77 ALLOCATOR_PROPERTIES props, props1; |
78 this->m_pDS_Filter = DS_Filter_Create((const char*)info->dll, &info->guid, &this->m_sOurType, &this->m_sDestType); | 78 this->m_pDS_Filter = DS_FilterCreate((const char*)info->dll, info->guid, &this->m_sOurType, &this->m_sDestType); |
79 if( !this->m_pDS_Filter ) { | 79 if( !this->m_pDS_Filter ) { |
80 free(this); | 80 free(this); |
81 return NULL; | 81 return NULL; |
82 } | 82 } |
83 | 83 |
84 DS_Filter_Start(this->m_pDS_Filter); | 84 this->m_pDS_Filter->Start(this->m_pDS_Filter); |
85 | 85 |
86 props.cBuffers=1; | 86 props.cBuffers=1; |
87 props.cbBuffer=this->m_sOurType.lSampleSize; | 87 props.cbBuffer=this->m_sOurType.lSampleSize; |
88 props.cbAlign=props.cbPrefix=0; | 88 props.cbAlign=props.cbPrefix=0; |
89 this->m_pDS_Filter->m_pAll->vt->SetProperties(this->m_pDS_Filter->m_pAll, &props, &props1); | 89 this->m_pDS_Filter->m_pAll->vt->SetProperties(this->m_pDS_Filter->m_pAll, &props, &props1); |
128 IMediaSample* sample=0; | 128 IMediaSample* sample=0; |
129 char* ptr; | 129 char* ptr; |
130 int result; | 130 int result; |
131 | 131 |
132 // this->m_pOurOutput->SetFramePointer(out_data+written); | 132 // this->m_pOurOutput->SetFramePointer(out_data+written); |
133 COutputPin_SetFramePointer(this->m_pDS_Filter->m_pOurOutput,&frame_pointer); | 133 this->m_pDS_Filter->m_pOurOutput->SetFramePointer(this->m_pDS_Filter->m_pOurOutput,&frame_pointer); |
134 COutputPin_SetFrameSizePointer(this->m_pDS_Filter->m_pOurOutput,(long*)&frame_size); | 134 this->m_pDS_Filter->m_pOurOutput->SetFrameSizePointer(this->m_pDS_Filter->m_pOurOutput,(long*)&frame_size); |
135 this->m_pDS_Filter->m_pAll->vt->GetBuffer(this->m_pDS_Filter->m_pAll, &sample, 0, 0, 0); | 135 this->m_pDS_Filter->m_pAll->vt->GetBuffer(this->m_pDS_Filter->m_pAll, &sample, 0, 0, 0); |
136 if (!sample) | 136 if (!sample) |
137 { | 137 { |
138 Debug printf("DS_AudioDecoder::Convert() Error: null sample\n"); | 138 Debug printf("DS_AudioDecoder::Convert() Error: null sample\n"); |
139 break; | 139 break; |