Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError in MediaInfo.parse #25

Closed
DmitriiShamrikov opened this issue Apr 16, 2016 · 1 comment
Closed

ValueError in MediaInfo.parse #25

DmitriiShamrikov opened this issue Apr 16, 2016 · 1 comment

Comments

@DmitriiShamrikov
Copy link

It breaks on line lib.MediaInfoA_Open(handle, filename.encode("utf8"), 0) and says "Procedure probably called with too many arguments (4 bytes in excess)". I have just downloaded last version (0.7.84) of MediaInfo.
Quick look at sources of MI points me that API of dll is changed - function MediaInfoA_Open now takes only two arguments, so removing last argument in the call makes it work.

@sbraz
Copy link
Owner

sbraz commented Apr 16, 2016

I can not reproduce with 0.8.4 but it's true that the function seems to only take 2 args: https://github.com/MediaArea/MediaInfoLib/blob/master/Source/MediaInfoDLL/MediaInfoDLL.cpp#L379
I cannot remember where the third argument came from.
I've pushed the change, thanks for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants