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

mot-object: does not save object to filesystem #66

Closed
athoik opened this issue Apr 14, 2020 · 3 comments
Closed

mot-object: does not save object to filesystem #66

athoik opened this issue Apr 14, 2020 · 3 comments

Comments

@athoik
Copy link
Contributor

athoik commented Apr 14, 2020

Hi,

It seems that mot-object doesn't save images to filesystem any more.

// MOT slide, to show
if (name == "")
realName = "no name";
else
realName = name;
// FILE * temp = fopen (realName. c_str (), "w");
// fwrite (result.data (), 1, result. size (), temp);
if (motdataHandler != nullptr)
motdataHandler (realName, contentsubType, ctx);
}

It was disabled on: d858f4f

(but before disable, it was written on working directory, instead of /tmp)

I restore it like this:

https://github.com/satdreamgr/dab-cmdline/blob/dev/library/src/backend/data/mot/mot-object.cpp#L164-L176

Obviously if there is no motdataHandler we can simply return immediately from handleComplete.

Restore this functionality?

@JvanKatwijk
Copy link
Owner

JvanKatwijk commented Apr 15, 2020 via email

@JvanKatwijk
Copy link
Owner

I changed the code:
if a handler is present then the object is written as a file in /tmp
if no handler is preset, object is ignored

@athoik
Copy link
Contributor Author

athoik commented Apr 15, 2020

And that perfectly makes sense! Thank you!

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