コード例 #1
0
ファイル: Container.cpp プロジェクト: dstieglitz/humble-video
int64_t
Container::url_seek(void*h, int64_t position, int whence) {
  int64_t retval = -1;
  try {
    URLProtocolHandler* handler = (URLProtocolHandler*) h;
    if (handler) retval = handler->url_seek(position, whence);
  } catch (...) {
    retval = -1;
  }
  VS_LOG_TRACE("URLProtocolHandler[%p]->url_seek(%p, %lld) ==> %d", h, position,
      whence, retval);
  return retval;
}
コード例 #2
0
int64_t
URLProtocolManager :: url_seek(void *h, int64_t position,
    int whence)
{
  int64_t retval = -1;
  try
  {
    URLProtocolHandler* handler = URLProtocolManager::getHandler(h);
    retval = handler->url_seek(position, whence);
  }
  catch(...)
  {
    retval = -1;
  }
  return retval;
}