Menu

#559 File name parameter includes extenstion in some cases

open
5
2012-12-11
2011-02-20
No

Environment: Windows XP SP3; mediainfo 0.7.39
Found an inconsistency where the file name parameter includes the file extension when the media file is in the current directory, but excludes the extension when the media file is specified with a path. Either result is probably ok, but it should be consistent.

Example where file is in a different directory; excludes the file extension from the file name:
MI.Open("C:\Files\Trash\04-Apologize.mp3")

MediaInfoLib - v0.7.39
Inform with Complete=true
General
Complete name : C:\Files\Trash\04-Apologize.mp3
Folder name : C:\Files\Trash
File name : 04-Apologize
File extension : mp3

Example where file is in the current directory (i.e. no path specified); includes the file extension with the file name:
MI.Open("04-Apologize.mp3")

MediaInfoLib - v0.7.39
General
Complete name : 04-Apologize.mp3
File name : 04-Apologize.mp3
File extension : mp3

Discussion


Log in to post a comment.

MongoDB Logo MongoDB