Go to the documentation of this file.
4 #if QT_VERSION < QT_VERSION_CHECK(5,14,0)
7 #include <QRecursiveMutex>
29 Context->priv_data =
nullptr;
61 if (Whence == AVSEEK_SIZE)
64 if (Whence == SEEK_END)
65 return avfr->GetBuffer()->GetRealFileSize() + Offset;
67 return avfr->GetBuffer()->Seek(Offset, Whence);
79 return ffurl_write(
reinterpret_cast<URLContext*
>(Context),
Buffer, Size);
86 return ffurl_read(
reinterpret_cast<URLContext*
>(Context),
Buffer, Size);
93 return ffurl_seek(
reinterpret_cast<URLContext*
>(Context), Offset, Whence);
98 #if QT_VERSION < QT_VERSION_CHECK(5,14,0)
99 static QMutex s_avringbufferLock(QMutex::Recursive);
101 static QRecursiveMutex s_avringbufferLock;
103 static bool s_avringbufferInitialised =
false;
105 QMutexLocker lock(&s_avringbufferLock);
106 if (!s_avringbufferInitialised)
117 s_avfrURL.flags = URL_PROTOCOL_FLAG_NETWORK;
118 s_avringbufferInitialised =
true;