Skip to content

Commit

Permalink
Always use RTP for 2nd camera stream
Browse files Browse the repository at this point in the history
The ground station has a setting for raw/RTP video encapsulation, and
QOpenHD uses that setting to configure the video pipelines, however
there is no raw 2nd camera stream so the setting should be ignored for
that pipeline and always use RTP instead.
  • Loading branch information
steveatinfincia committed Jan 7, 2020
1 parent ed95622 commit 592a7fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openhdvideostream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ void OpenHDVideoStream::_start() {
} else {
qDebug() << "Listening on port" << m_video_port;

if (m_enable_rtp) {
if (m_enable_rtp || m_stream_type == StreamTypePiP) {
s << QString("udpsrc port=%1 caps=\"application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264\" timeout=1000000000 !").arg(m_video_port);
s << "rtpjitterbuffer !";
s << "rtph264depay ! ";
Expand Down

0 comments on commit 592a7fe

Please sign in to comment.