// NOTE: The requested format must match the input format until
// we implememnt pixel format conversion and resizing inside
// this class.
RTC_CHECK(_captureFormat == format);
if (capture_state() == cricket::CS_RUNNING) {
LWarn("Start called when it's already started.")
return capture_state();
}
if (_source)
_source->attach(packetSlot(this, &VideoPacketSource::onVideoCaptured));
SetCaptureFormat(&format);
return cricket::CS_RUNNING;
}
this is strange, I don't known where's wrong, please help me.
first run the node app, and run webrtcstreamer, and webrtcstreamer will crashed after open http://localhost:4499.
I found the crashed point at webrtc/src/webpacketsource.cpp, do Start and SetCaptureFormat that will make crashed:
cricket::CaptureState VideoPacketSource::Start(const cricket::VideoFormat& format) { LDebug("Start")
}
this is strange, I don't known where's wrong, please help me.
and more env details:
libsourcey: master/head libwebrtc: webrtc-22215-ab42706-linux-x64.tar.gz os: Debian 9.1
$ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 9.1 (stretch) Release: 9.1 Codename: stretch