From b20fdc1389d57b9cbd183b41e73920eb9fb94d34 Mon Sep 17 00:00:00 2001 From: Sangjung Woo Date: Tue, 9 Jun 2020 14:10:26 +0900 Subject: [PATCH] [Mux] Set sync-mode to slowest as default After passing mux / demux, the framerate is extremely bigger than before. (Issue #2440) This is mainly because sync_mode of tensor_mux filter is SYNC_NOSYNC. To fix this bug, this patch set sync_mode to SYNC_SLOWEST as default. Signed-off-by: Sangjung Woo --- gst/nnstreamer/tensor_mux/gsttensormux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/nnstreamer/tensor_mux/gsttensormux.c b/gst/nnstreamer/tensor_mux/gsttensormux.c index 286e06e..2ad5668 100644 --- a/gst/nnstreamer/tensor_mux/gsttensormux.c +++ b/gst/nnstreamer/tensor_mux/gsttensormux.c @@ -210,7 +210,7 @@ gst_tensor_mux_init (GstTensorMux * tensor_mux) tensor_mux); tensor_mux->silent = TRUE; - tensor_mux->sync.mode = SYNC_NOSYNC; + tensor_mux->sync.mode = SYNC_SLOWEST; tensor_mux->sync.option = NULL; tensor_mux->need_buffer = FALSE; tensor_mux->current_time = 0; @@ -525,7 +525,7 @@ gst_tensor_mux_set_property (GObject * object, guint prop_id, filter->sync.mode = gst_tensor_time_sync_get_mode (g_value_get_string (value)); if (filter->sync.mode == SYNC_END) { - filter->sync.mode = SYNC_NOSYNC; + filter->sync.mode = SYNC_SLOWEST; } silent_debug ("Mode = %d(%s)\n", filter->sync.mode, gst_tensor_time_sync_get_mode_string (filter->sync.mode)); -- 2.7.4