libgscaler: Fix an build error by casting to enum correctly.

Change-Id: I934724baa2678811919b78d661823ac8de52ff13
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>