Re: windowscodecs: Create a IWICMetadataReader when loading a TIFF frame.

2012-06-18 Thread Dmitry Timoshkov
Dmitry Timoshkov wrote: > > Also, I just noticed that you're calling create_metadata_reader > > unconditionally from QueryInterface, and not checking in the process > > whether the reader has already been created. That will leak if QI is > > called multiple times. > > > > I'm not sure doing real

Re: windowscodecs: Create a IWICMetadataReader when loading a TIFF frame.

2012-06-18 Thread Dmitry Timoshkov
Vincent Povirk wrote: > >> We can't use that stream because we provide separate seek and > >> read/write methods to libtiff, and libtiff may rely on the stream's > >> position to not change between operations. > > > > libtiff doesn't rely on stream positions, and my use of stream matches > > MSDN

Re: windowscodecs: Create a IWICMetadataReader when loading a TIFF frame.

2012-06-18 Thread Vincent Povirk
>> > +        hr = IWICPersistStream_LoadEx(persist, This->parent->stream, >> > NULL, persist_options); >> > +        if (FAILED(hr)) >> > +            ERR("IWICPersistStream_LoadEx error %#x\n", hr); >> >> We can't use that stream because we provide separate seek and >> read/write methods to libt

Re: windowscodecs: Create a IWICMetadataReader when loading a TIFF frame.

2012-06-18 Thread Dmitry Timoshkov
Vincent Povirk wrote: > > +        hr = IWICPersistStream_LoadEx(persist, This->parent->stream, NULL, > > persist_options); > > +        if (FAILED(hr)) > > +            ERR("IWICPersistStream_LoadEx error %#x\n", hr); > > We can't use that stream because we provide separate seek and > read/wri

Re: windowscodecs: Create a IWICMetadataReader when loading a TIFF frame.

2012-06-18 Thread Vincent Povirk
> +        hr = IWICPersistStream_LoadEx(persist, This->parent->stream, NULL, > persist_options); > +        if (FAILED(hr)) > +            ERR("IWICPersistStream_LoadEx error %#x\n", hr); We can't use that stream because we provide separate seek and read/write methods to libtiff, and libtiff may