highgui: fix segfault on CvCapture_GStreamer::retrieveFrame
authorLuis Zarrabeitia <zarrabeitia@gmail.com>
Sun, 11 May 2014 23:00:14 +0000 (19:00 -0400)
committerLuis Zarrabeitia <zarrabeitia@gmail.com>
Sun, 11 May 2014 23:00:14 +0000 (19:00 -0400)
commitbb5a22c504bfa512cd8e40fc252947a5946ffc23
treee5d9ac8a92d4fe18425de0dbc126a6866e3c04af
parentc74fed1fcf0705b17f707edb53da57c72c206562
highgui: fix segfault on CvCapture_GStreamer::retrieveFrame

CvCapture_GStreamer::retrieveFrame assumes that RGB videos are 24BPP.
This is not necesarily the case, unless we explicitly tell GStreamer
that we want 24BPP RGB streams.

Adding bpp=(int)24 to the appsink caps.
modules/highgui/src/cap_gstreamer.cpp