[Live-devel] Boolean Groupsock::deleteIfNoMembers;

Thomas Göllner goelli at goelli.de
Fri Feb 7 04:26:38 PST 2014


Thanks Ross for this quick response.
It's a good hint, that the "groupsock" library will be replaced. So it is
useless, I think, to provide a patch for this. As a workaround I subclass
the ServerMediaSubsessions I need and add something like that:

virtual void closeStreamSource(FramedSource* inputSource) {
	Medium::close(inputSource);
	if (fInputGroupsock->members().IsEmpty() &&
fInputGroupsock->deleteIfNoMembers) {
		delete fInputGroupsock;
		fInputGroupsock = NULL;
	}
}

Best regards,
Thomas Göllner




More information about the live-devel mailing list