cplussharp / graph-studio-next

GraphStudioNext is a tool for developers to build and test DirectShow Graphs
355 stars 94 forks source link

Analyzer writer filter is persisted as Microsoft file writer filter #282

Open mikecopperwhite opened 9 years ago

mikecopperwhite commented 9 years ago

See CAnalyzerWriterFilter::GetClassID

This means that the analzyer writer filter will be replaced on loading with the MS file writer. Useful for loading into GraphEdit and other applications but inconsistent with other internal filters that can be persisted in GRF and GRFX files.

cplussharp commented 9 years ago

CAnalyzerWriterFilter::GetClassID repots itself as File Writer because some strange mux-filters check for this, at least in the time of writing it. I don't know if it is still the case. Maybe the GRFX Save algorithm needs to check if this is a Analyzer when he founds a file writer and save this clsid.

mikecopperwhite commented 9 years ago

Ah, OK that makes sense. Suppose I could write a bit of code that sets the reported CLSID back to the real one for the duration of saving then back to 'emulation' mode after.

Do you recall which filters had this problem?