Fixed regression in cv::VideoCapture with gstreamer back end that prevented viewing of rtsp streams.

This commit is contained in:
Dan 2016-02-18 00:39:44 -05:00
parent e04f372083
commit da189ce1e0

View File

@ -860,8 +860,8 @@ bool CvCapture_GStreamer::open( int type, const char* filename )
fps = (double)num/(double)denom;
// GST_DEBUG_BIN_TO_DOT_FILE(GST_BIN(pipeline), GST_DEBUG_GRAPH_SHOW_ALL, "pipeline")
stopPipeline();
if (file)
stopPipeline();
}
__END__;