CyanFox/android_packages_apps_Gallery2 — pull request #2 by MNT-Mantas (2014-03-06 11:21:26+00:00)
Title: Camera: Fix out-of-order operations while setting up the editor

The buffer's producer is created by the cache pipeline generation,
so verifying that it isn't null before calling compute() is wrong.

This breaks a few devices, and should actually break them all, so
fix it; only check if getProducer() is valid after running setProducer()

Change-Id: I9d7d03fa9c9eb7063daef2ae28a78cd70b7a5ef3