MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / SetNodeStateReady

Method SetNodeStateReady

Source/OpenNI/XnPlayerImpl.cpp:720–744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

718}
719
720XnStatus PlayerImpl::SetNodeStateReady(const XnChar* strNodeName)
721{
722 XnStatus nRetVal = XN_STATUS_OK;
723
724 PlayedNodeInfo playedNode;
725 nRetVal = m_playedNodes.Get(strNodeName, playedNode);
726 XN_IS_STATUS_OK(nRetVal);
727
728 nRetVal = xnLockedNodeStartChanges(playedNode.hNode, playedNode.hLock);
729 XN_IS_STATUS_OK(nRetVal);
730
731 nRetVal = xnSetIntProperty(playedNode.hNode, XN_PROP_STATE_READY, 1);
732 if (nRetVal != XN_STATUS_OK)
733 {
734 xnLockedNodeEndChanges(playedNode.hNode, playedNode.hLock);
735 return (nRetVal);
736 }
737
738 nRetVal = xnLockedNodeEndChanges(playedNode.hNode, playedNode.hLock);
739 XN_IS_STATUS_OK(nRetVal);
740
741 //TODO: When we move the codec handling to PlayerImpl this notification will be more useful for PlayerImpl.
742
743 return (XN_STATUS_OK);
744}
745
746void PlayerImpl::OnEndOfFileReached()
747{

Callers 1

OnNodeStateReadyMethod · 0.80

Calls 4

xnLockedNodeStartChangesFunction · 0.85
xnSetIntPropertyFunction · 0.85
xnLockedNodeEndChangesFunction · 0.85
GetMethod · 0.45

Tested by

no test coverage detected