change: change code style to Linux style except indent.
This commit is contained in:
+11
-14
@@ -23,26 +23,23 @@
|
||||
|
||||
#include "codec/decoder.h"
|
||||
|
||||
namespace olive {
|
||||
|
||||
template <typename K, typename V>
|
||||
class RenderCache : public QHash<K, V>
|
||||
namespace olive
|
||||
{
|
||||
|
||||
template <typename K, typename V> class RenderCache : public QHash<K, V> {
|
||||
public:
|
||||
QMutex *mutex()
|
||||
{
|
||||
return &mutex_;
|
||||
}
|
||||
QMutex *mutex()
|
||||
{
|
||||
return &mutex_;
|
||||
}
|
||||
|
||||
private:
|
||||
QMutex mutex_;
|
||||
|
||||
QMutex mutex_;
|
||||
};
|
||||
|
||||
struct DecoderPair
|
||||
{
|
||||
DecoderPtr decoder = nullptr;
|
||||
qint64 last_modified = 0;
|
||||
struct DecoderPair {
|
||||
DecoderPtr decoder = nullptr;
|
||||
qint64 last_modified = 0;
|
||||
};
|
||||
|
||||
using DecoderCache = RenderCache<Decoder::CodecStream, DecoderPair>;
|
||||
|
||||
Reference in New Issue
Block a user