コード例 #1
0
ファイル: sws_util.cpp プロジェクト: Lazzle/sws
// overrides the native GetTrackGUID(): returns a special GUID for the master track
// (useful for persistence as no GUID is stored in RPP files for the master..)
// note: TrackToGuid(NULL) will return also NULL, contrary to GetTrackGUID(NULL)
const GUID* TrackToGuid(MediaTrack* tr)
{
	if (tr)
	{
		if (tr == GetMasterTrack(NULL))
			return &GUID_NULL;
		else
			return GetTrackGUID(tr);
	}
	return NULL;
}
コード例 #2
0
ファイル: sws_util.cpp プロジェクト: Lazzle/sws
bool TrackMatchesGuid(MediaTrack* tr, const GUID* g)
{
	if (tr && g)
	{
		if (GuidsEqual(GetTrackGUID(tr), g))
			return true;
		// 2nd try for the master
		if (tr == GetMasterTrack(NULL))
			return GuidsEqual(g, &GUID_NULL);
	}
	return false;
}
コード例 #3
0
ファイル: RprTrack.cpp プロジェクト: AusRedNeck/sws
GUID *RprTrack::getGUID()
{
    return GetTrackGUID(mTrack);
}