Merge pull request #6267 from dtmoodie:issue_5918

This commit is contained in:
Alexander Alekhin 2016-03-21 09:37:11 +00:00
commit a4e35d83ff

View File

@ -874,8 +874,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__;