Fixed comparing int to float bug

After video been minimized I wasn't been able to dismiss it, because it compared int to float

This fix solves it.