camerabin: mode can be only image or video
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Tue, 28 Dec 2010 20:16:05 +0000 (17:16 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Tue, 28 Dec 2010 20:16:05 +0000 (17:16 -0300)
commit07279bac7b2271439d0ef201264400a3ff4c0ff9
tree2c5c35a32c470c3de87dcc8dd27388b5142942c7
parent895c07ef046d4edd994c0b497434457ed53dfa5f
camerabin: mode can be only image or video

No need to check if camerabin is on video mode if it isn't on
image mode as those are the only 2 modes available.

Additionally, if mode gets corrupted somehow and would be neither
image or video it would cause a null pointer dereferencing some
lines of code below, so this is safer.
gst/camerabin/gstcamerabin.c