Pass RTP context flags to frame queue

This commit is contained in:
Aaro Altonen 2020-08-17 12:49:53 +03:00
parent ef2a27e3b6
commit bfc6283f91
3 changed files with 4 additions and 23 deletions

View File

@ -96,9 +96,7 @@ namespace uvg_rtp {
class frame_queue {
public:
/* frame_queue(rtp_format_t fmt); */
/* frame_queue(rtp_format_t fmt, uvg_rtp::dispatcher *dispatcher); */
frame_queue(uvg_rtp::socket *socket, uvg_rtp::rtp *rtp);
frame_queue(uvg_rtp::socket *socket, uvg_rtp::rtp *rtp, int flags);
~frame_queue();
rtp_error_t init_transaction();

View File

@ -434,7 +434,7 @@ end:
}
uvg_rtp::formats::hevc::hevc(uvg_rtp::socket *socket, uvg_rtp::rtp *rtp, int flags):
media(socket, rtp, flags), fqueue_(new uvg_rtp::frame_queue(socket, rtp))
media(socket, rtp, flags), fqueue_(new uvg_rtp::frame_queue(socket, rtp, flags))
{
}

View File

@ -14,25 +14,8 @@
#include "formats/hevc.hh"
/* uvg_rtp::frame_queue::frame_queue(rtp_format_t fmt): */
/* active_(nullptr), fmt_(fmt), dealloc_hook_(nullptr) */
/* { */
/* active_ = nullptr; */
/* dispatcher_ = nullptr; */
/* max_queued_ = MAX_QUEUED_MSGS; */
/* max_mcount_ = MAX_MSG_COUNT; */
/* max_ccount_ = MAX_CHUNK_COUNT * max_mcount_; */
/* } */
/* uvg_rtp::frame_queue::frame_queue(rtp_format_t fmt, uvg_rtp::dispatcher *dispatcher): */
/* frame_queue(fmt) */
/* { */
/* dispatcher_ = dispatcher; */
/* } */
uvg_rtp::frame_queue::frame_queue(uvg_rtp::socket *socket, uvg_rtp::rtp *rtp):
rtp_(rtp), socket_(socket)
uvg_rtp::frame_queue::frame_queue(uvg_rtp::socket *socket, uvg_rtp::rtp *rtp, int flags):
rtp_(rtp), socket_(socket), flags_(flags)
{
active_ = nullptr;
dispatcher_ = nullptr;