IsMusic() problem

Report any Hollywood bugs here
Post Reply
djg
Posts: 16
Joined: Wed Feb 12, 2020 10:37 pm

IsMusic() problem

Post by djg »

Hi,

It appears that IsMusic() has a problem.
After it decides that a file is not music (or audio), you can no longer open it for writing.
StringToFile() also fails, but deleting with DeleteFile() does work, so I guess you could do that first as a workaround.

Example:

Code: Select all

StringToFile("1", "testfile")
StringToFile("2", "testfile")
DebugPrint("IsMusic() returns ", IsMusic("testfile"))
StringToFile("3", "testfile")

Here the third StringToFile() call fails.
User avatar
airsoftsoftwair
Posts: 5615
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: IsMusic() problem

Post by airsoftsoftwair »

Right, I can confirm that this is a bug but only seems to happen on Windows. Will be fixed, thanks for reporting!
User avatar
airsoftsoftwair
Posts: 5615
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: IsMusic() problem

Post by airsoftsoftwair »

Code: Select all

- Fix [Windows]: IsMusic() in the DirectShow driver didn't release resources correctly so that files that
  couldn't be loaded by the driver still held a filesystem lock
Post Reply