fixed crash when file contains no valid frames #601

This commit is contained in:
itsmattkc
2019-03-05 10:12:34 -08:00
parent 27d77abdc2
commit f9e7c3a3dd
3 changed files with 15 additions and 1 deletions
+9
View File
@@ -159,6 +159,15 @@ public:
*/
int size();
/**
* @brief Returns whether the queue is empty of not.
*
* @return
*
* **TRUE** if the queue is empty and contains no frames, **FALSE** if not.
*/
bool isEmpty();
private:
QVector<AVFrame*> queue;
QMutex queue_lock;