Bug 1085212: release video hardware before sharing and restore when done

Followup fix for bug 1088456: use playerShowing instead of playing so the patch works even if we are paused
Need to protect against function being called when video is already released.