Commit 625d3f47 authored by Andrew Voznytsa's avatar Andrew Voznytsa

Cosmetics

parent 6ad06a89
......@@ -902,11 +902,11 @@ VideoReceiver::setVideoSink(GstElement* videoSink)
// |
// source-->tee
// |
// | +--------------_sink-------------------+
// | | |
// we are adding these elements-> +->teepad-->queue-->matroskamux-->_filesink |
// | |
// +--------------------------------------+
// | +---------_sink----------+
// | | |
// we are adding these elements-> +->teepad-->queue-->_filesink |
// | |
// +------------------------+
GstElement*
VideoReceiver::_makeFileSink(const QString& videoFile, unsigned format)
{
......@@ -917,12 +917,12 @@ VideoReceiver::_makeFileSink(const QString& videoFile, unsigned format)
bool releaseElements = true;
do{
if ((mux = gst_element_factory_make(kVideoMuxes[format], "mux")) == nullptr) {
if ((mux = gst_element_factory_make(kVideoMuxes[format], nullptr)) == nullptr) {
qCritical() << "VideoReceiver::_makeFileSink() failed. Error with gst_element_factory_make('" << kVideoMuxes[format] << "')";
break;
}
if ((sink = gst_element_factory_make("filesink", "filesink")) == nullptr) {
if ((sink = gst_element_factory_make("filesink", nullptr)) == nullptr) {
qCritical() << "VideoReceiver::_makeFileSink() failed. Error with gst_element_factory_make('filesink')";
break;
}
......
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