Commit 921675c4 authored by Dirk Van Haerenborgh's avatar Dirk Van Haerenborgh

eliminated warnings

parent 4f3453db
...@@ -83,7 +83,8 @@ static cv::Mutex gst_initializer_mutex; ...@@ -83,7 +83,8 @@ static cv::Mutex gst_initializer_mutex;
/*! /*!
* \brief The gst_initializer class * \brief The gst_initializer class
* Initializes gstreamer once in the whole process * Initializes gstreamer once in the whole process
*/class gst_initializer */
class gst_initializer
{ {
public: public:
static void init() static void init()
...@@ -1007,9 +1008,9 @@ void CvVideoWriter_GStreamer::init() ...@@ -1007,9 +1008,9 @@ void CvVideoWriter_GStreamer::init()
*/ */
void CvVideoWriter_GStreamer::close() void CvVideoWriter_GStreamer::close()
{ {
if (pipeline) { if (pipeline)
GstFlowReturn ret; {
ret = gst_app_src_end_of_stream(GST_APP_SRC(source)); gst_app_src_end_of_stream(GST_APP_SRC(source));
//wait for EOS to trickle down the pipeline. This will let all elements finish properly //wait for EOS to trickle down the pipeline. This will let all elements finish properly
GstBus* bus = gst_element_get_bus(pipeline); GstBus* bus = gst_element_get_bus(pipeline);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment