Skip to content

Commit 946df00

Browse files
committed
vrxtx_params: rm unused start_time
start_time is already set in common_opts set by COMMON_OPTS_INIT
1 parent 9659fc3 commit 946df00

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/main.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,8 +1341,6 @@ int main(int argc, char *argv[])
13411341
struct control_state *control = NULL;
13421342
int ret;
13431343

1344-
time_ns_t start_time = get_time_in_ns();
1345-
13461344
struct ug_nat_traverse *nat_traverse = nullptr;
13471345

13481346
#ifndef _WIN32
@@ -1469,7 +1467,6 @@ int main(int argc, char *argv[])
14691467
#endif /* USE_RT */
14701468

14711469
opt.video.capture_device = uv.capture_device; // iHDTV
1472-
opt.video.start_time = start_time; // RTP protocols
14731470
opt.video.display_device = uv.display_device; // UltraGrid RTP, iHDTV
14741471
// RTSP + SDP
14751472
opt.video.send_audio = strcmp("none", opt.audio.send_cfg) != 0;

src/video_rxtx.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ struct vrxtx_params {
7070
long long bitrate_limit; ///< rate limiter in bps or RATE_ constantts
7171
enum video_mode decoder_mode;
7272
const char *protocol_opts;
73-
long long start_time;
7473
bool send_audio; ///< RTSP+SDP
7574
bool send_video; ///< RTSP+SDP
7675
struct module *sender_mod; ///< set by video_rxtx::create
@@ -90,7 +89,6 @@ struct vrxtx_params {
9089
.bitrate_limit = RATE_UNLIMITED, \
9190
.decoder_mode = VIDEO_NORMAL, \
9291
.protocol_opts = "", \
93-
.start_time = 0, \
9492
.send_audio = false, \
9593
.send_video = false, \
9694
.sender_mod = nullptr, \

0 commit comments

Comments
 (0)