fixed various caching issues when rapidly changing values
This commit is contained in:
+14
-1
@@ -27,7 +27,10 @@
|
||||
|
||||
Frame::Frame() :
|
||||
width_(0),
|
||||
height_(0)
|
||||
height_(0),
|
||||
format_(-1),
|
||||
timestamp_(0),
|
||||
native_timestamp_(0)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -66,6 +69,16 @@ void Frame::set_timestamp(const rational ×tamp)
|
||||
timestamp_ = timestamp;
|
||||
}
|
||||
|
||||
const int64_t &Frame::native_timestamp()
|
||||
{
|
||||
return native_timestamp_;
|
||||
}
|
||||
|
||||
void Frame::set_native_timestamp(const int64_t ×tamp)
|
||||
{
|
||||
native_timestamp_ = timestamp;
|
||||
}
|
||||
|
||||
const int &Frame::format()
|
||||
{
|
||||
return format_;
|
||||
|
||||
Reference in New Issue
Block a user