Bug 1085212: release video hardware before sharing and restore when done.
Merge pull request #25947 from davidflanagan/bug1085212-v2.0

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