motioncells: fix splitting of RGB color string
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Mon, 28 Dec 2015 06:32:22 +0000 (22:32 -0800)
committerReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Mon, 28 Dec 2015 07:26:50 +0000 (23:26 -0800)
commit77b7864670f7691d8fcc30561cfc30df6a94d2a2
tree13501a7a2911d12e21ac32aaf41e58f4ed05aba1
parent5515a961678ece2bc3417ea094fe75aef71f1408
motioncells: fix splitting of RGB color string

No need to attempt splitting the RGB string in 255 tokens
if we only expect 3.

Left max_tokens at 4 to preserve the current logic (which
allows for extra stuff at the end) and added a warning on
parsing failure instead of silently discarding the value.
ext/opencv/gstmotioncells.cpp