void Source_Ref::release()
{ _pimpl->release(); }
- void Source_Ref::reattach(const Pathname &attach_point,
- bool temporary)
- { _pimpl->reattach(attach_point, temporary); }
+ void Source_Ref::reattach(const Pathname &attach_point)
+ { _pimpl->reattach(attach_point); }
media::MediaVerifierRef Source_Ref::verifier(unsigned media_nr)
{ return _pimpl->verifier(media_nr); }
*
* \throws Exception
*/
- void reattach(const Pathname &attach_point,
- bool temporary = false);
+ void reattach(const Pathname &attach_point);
/**
* Provide a media verifier suitable for the given media number
}
}
- void SourceManager::reattachSources(const Pathname &attach_point,
- bool temporary)
+ void SourceManager::reattachSources(const Pathname &attach_point)
{
for (SourceMap::iterator it = _sources.begin();
it != _sources.end(); it++)
{
- it->second->reattach(attach_point, temporary);
+ it->second->reattach(attach_point);
}
}
*
* \throws Exception
*/
- void reattachSources(const Pathname &attach_point,
- bool temporary = false);
+ void reattachSources(const Pathname &attach_point);
/**
* Disable all registered sources
medias[medianr] = media_id;
}
- void MediaSet::reattach(const Pathname &attach_point,
- bool temporary)
+ void MediaSet::reattach(const Pathname &attach_point)
{
media::MediaManager media_mgr;
+ media_mgr.setAttachPrefix(attach_point);
for (MediaMap::iterator it = medias.begin(); it != medias.end(); it++)
{
Url url = media_mgr.url(it->second);
std::string scheme = url.getScheme();
if (scheme == "http" || scheme == "ftp" || scheme == "https" || scheme == "ftps")
{
- media_mgr.reattach(it->second, attach_point, temporary);
+ media_mgr.release(it->second);
+ media_mgr.attach(it->second);
}
}
}
*
* \throws Exception
*/
- void reattach(const Pathname &attach_point,
- bool temporary = false);
+ void reattach(const Pathname &attach_point);
/** Reset the handles to the medias */
void reset();
/**
media::MediaAccessId id = media_mgr.open( new_url );
_media_set->redirect( media_nr, id );
}
- void SourceImpl::reattach(const Pathname &attach_point,
- bool temporary)
+ void SourceImpl::reattach(const Pathname &attach_point)
{
DBG << "reattach(" << attach_point << ")" << endl;
- _media_set->reattach( attach_point, temporary );
+ _media_set->reattach( attach_point );
}
void SourceImpl::release()
*
* \throws Exception
*/
- void reattach(const Pathname &attach_point,
- bool temporary = false);
+ void reattach(const Pathname &attach_point);
/**
* Release all medias attached by the source
*/