Bug 837236 - share video decoding hardware among Camera, Gallery and Video r=daleharvey a=tef+

Creating a new pull request to land this tef+ fix on v1.0.1 because it is a long weekend and I don't want to wait for a sheriff to do it right.