sink count?
Carl Karsten
carl at personnelware.com
Tue Sep 1 15:10:30 UTC 2009
is sinks_.size() - 1 reliable?
mixer.cpp :172
mixer::sink_id mixer::add_sink(sink * sink)
{
boost::mutex::scoped_lock lock(sink_mutex_);
// XXX We may want to be able to reuse sink slots.
sinks_.push_back(sink);
return sinks_.size() - 1;
}
void mixer::remove_sink(sink_id id)
{
boost::mutex::scoped_lock lock(sink_mutex_);
sinks_.at(id) = 0;
}
I think it would be good to keep track of the number of sinks. Once I
know how to do that, I am going to try hooking up the "record/stop"
indicator so that you can't record if there is no sink, and if the
last sink drops, flip the status back to 'stop'. I lost a talk
because I was trying to write to an external drive that wasn't
mounted, and didn't notice that dvsink-file had terminated. I lost 3
talks because I ran out of space.
--
Carl K
More information about the dvswitch-devel
mailing list