Fix gstreamer detection logic

I couldn't disable gstreamer even if I specified -DWITH_GSTREAMER=OFF -DWITH_GSTREAMER_0_10=OFF.