Move LiveStream code to separate directory

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Rename all members of LiveStream to have m_ prefix

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Rename all members of LiveStreamWorker to have m_ prefix

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Create LiveStreamThread class for managing LiveStreamWorker instance

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Fix pause stream code, it was a mess

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Move pause code to separate class - ThreadPause

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

Signed-off-by: Rafał Malinowski <rafal.przemyslaw.malinowski@gmail.com>
Fix bug #123

Libav had no timeout set for any of its functions. Now timeout callback
is added and set to 10 seconds.

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

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Do not use signals and slot to stop live stream thread

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Move StreamFrame to separate files

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

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Add LiveStreamFrame::deleteFrom method
Add LiveStreamFrame::deleteFromTo method

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Merge deleteFrom and deleteFromTo into one method

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Do not return bool from LiveStream::updateFrame()

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Extact LiveStream::frameToDisplay() method

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

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Move deleting unused frames outside of frameToDisplay() method

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Simplify scaling logic in LiveStream::frameToDisplay()

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