MediaPlayer: Add missing null check

Signed-off-by: Dario Casalinuovo <[email protected]>
This commit is contained in:
Markus Himmel
2016-01-06 13:17:39 +01:00
committed by Dario Casalinuovo
parent b0c69e8490
commit beddc8eefa
+2 -1
View File
@@ -302,7 +302,8 @@ Controller::SetTo(const PlaylistItemRef& item)
trackSupplierDeleter.Detach();
// prevent blocking the creation of new overlay buffers
fVideoView->DisableOverlay();
if (fVideoView)
fVideoView->DisableOverlay();
// get video properties (if there is video at all)
bool useOverlays = fVideoView ? fVideoView->UseOverlays() : true;