https://bugs.freedesktop.org/show_bug.cgi?id=59022

--- Comment #11 from Michael Stahl <mst...@redhat.com> ---
(In reply to comment #8)
> (In reply to comment #7)
> 
> > trying it with a local file i get first open from type detection
> > filling the XInputStream in the Media Descriptor:
> 
> > second open is then to copy the file to a temp-file in SfxMedium:
> 
> > ... no idea what to do about it, other than perhaps to somehow use the
> > Media Descriptor stream to create the temp file?
> 
> Or close the Media Descriptor stream before creating the temp file? Or think
> again why we need a lock?

this whole SfxMedium stuff is rather complex and i don't understand
much of it anyway...

> > i wonder why that used to work in older versions then?
> 
> Here's the difference I see from the strace: In older versions, the first
> opened file is not read from before opening the second file. Possibly the
> lock that is taken is "lazy", as in it is gotten only when actually
> reading/writing data from/to the file?
> 
> Actually, the first opened file is *never* read from. So it seems the
> "XInputStream in the Media Descriptor" is never used in older versions. So
> my guess is that something changed in type detection, or maybe XInputStream
> is less lazy?

interesting. what happens if you revert
0c2206081de38a41597aadfb2255540d6308be63 ?

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to