Merge pull request #11687 from alalek:gstreamer_write_pipeline

pull/11700/head
Alexander Alekhin 7 years ago
commit b0ae357cfb
  1. 2
      modules/videoio/src/cap_gstreamer.cpp

@ -1657,6 +1657,8 @@ bool CvVideoWriter_GStreamer::open( const char * filename, int fourcc,
} }
#endif #endif
GST_DEBUG_BIN_TO_DOT_FILE(GST_BIN(pipeline), GST_DEBUG_GRAPH_SHOW_ALL, "write-pipeline");
stateret = gst_element_set_state(GST_ELEMENT(pipeline), GST_STATE_PLAYING); stateret = gst_element_set_state(GST_ELEMENT(pipeline), GST_STATE_PLAYING);
if(stateret == GST_STATE_CHANGE_FAILURE) { if(stateret == GST_STATE_CHANGE_FAILURE) {
handleMessage(pipeline); handleMessage(pipeline);

Loading…
Cancel
Save