Skip to content

Commit

Permalink
Fix ExternalOutput with Simulcast (#866)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcague authored Apr 21, 2017
1 parent b45d994 commit 9668b17
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions erizo/src/erizo/media/ExternalOutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,10 @@ int ExternalOutput::deliverAudioData_(std::shared_ptr<dataPacket> audio_packet)

int ExternalOutput::deliverVideoData_(std::shared_ptr<dataPacket> video_packet) {
std::shared_ptr<dataPacket> copied_packet = std::make_shared<dataPacket>(*video_packet);
// TODO(javierc): We should support higher layers, but it requires having an entire pipeline at this point
if (!video_packet->belongsToSpatialLayer(0)) {
return 0;
}
if (videoSourceSsrc_ == 0) {
RtpHeader* h = reinterpret_cast<RtpHeader*>(copied_packet->data);
videoSourceSsrc_ = h->getSSRC();
Expand Down

0 comments on commit 9668b17

Please sign in to comment.