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

Fresh tracks were unable to be saved #169

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

failure-to-thrive
Copy link
Contributor

The deleted code induced #156. Of course, getMaxLinecount() returns only 1 when a tracking is not performed yet. I have no idea why that code was there, but it looks to be there intentionaly. So if I've missed something, just dismiss this PR.

@hmoenck
Copy link
Contributor

hmoenck commented Aug 8, 2018

Well, yes, it was there intentionally. Technically a trajectory needs at least two points to be considdered a trajectory (per definition). Maybe there are usecases for writing a trajectory consisting of a single point, so replacing <=1 with <1 seems reasonable.
What is a valid usecase for writing empty trajectories? The downside of course would be, that every time some kind of media is opened, a "trajectory" would be written, although the tracking plugin was never triggered.

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

Successfully merging this pull request may close these issues.

2 participants