file: follow-up for commit 24d54c36

This commit is contained in:
Dimitri Stolnikov 2014-05-03 18:41:43 +02:00
parent b986e31e63
commit c7cb045fcb
1 changed files with 2 additions and 2 deletions

View File

@ -375,10 +375,10 @@ size_t osmosdr_source_c_impl::get_num_channels()
return channels;
}
bool source_impl::seek( long seek_point, int whence, size_t chan )
bool osmosdr_source_c_impl::seek( long seek_point, int whence, size_t chan )
{
size_t channel = 0;
BOOST_FOREACH( source_iface *dev, _devs )
BOOST_FOREACH( osmosdr_src_iface *dev, _devs )
for (size_t dev_chan = 0; dev_chan < dev->get_num_channels(); dev_chan++)
if ( chan == channel++ )
return dev->seek( seek_point, whence, dev_chan );