Remove unused parameter

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Fix locker positions

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Use QQueue instead of manual linked list for frames

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Remove unused method from LiveStreamFrame

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Remove unused field from LiveStreamFrame

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Promote LiveStreamFrame to class

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Extract enqueueFrame and dropOldFrames methods

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Add LiveStreamFrameQueue for storing queue of frames
Remove LiveStreamWorker::destroy() method

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Do not call processEvents() inside thread

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Remove unused variable

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Reduce scope of packet variable

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
merge with destroy removal
Extract processStream() method in LiveStreamWorker

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Replace while loops with if

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Extract processStreamLoop() method in LiveStreamWorker

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Extract processPacket() method in LiveStreamWorker

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Move AVFrame declaration to processPacket method

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Move frame scaling code to new class LiveStreamFrameFormatter

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Refactor LiveStreamFrameFormatter class

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>