Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Keep last not-null previous head

  • Loading branch information...
commit 14e7497c45c2e925e686517b779584179336d909 1 parent 622b6f7
@iaguis iaguis authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 skeltrack/skeltrack-skeleton.c
View
7 skeltrack/skeltrack-skeleton.c
@@ -1684,12 +1684,15 @@ track_joints (SkeltrackSkeleton *self)
joints = smoothed;
}
- skeltrack_joint_free (self->priv->previous_head);
if (joints)
{
SkeltrackJoint *joint = skeltrack_joint_list_get_joint (joints,
SKELTRACK_JOINT_ID_HEAD);
- self->priv->previous_head = skeltrack_joint_copy (joint);
+ if (joint != NULL)
+ {
+ skeltrack_joint_free (self->priv->previous_head);
+ self->priv->previous_head = skeltrack_joint_copy (joint);
+ }
}
g_list_free (extremas);
Please sign in to comment.
Something went wrong with that request. Please try again.