How to prevent latency from changing?
SamJ
testsoft.49 at gmail.com
Thu Mar 17 10:24:51 UTC 2016
Hi,
Please create one callback using below line in app_function where another
callback are there..
g_signal_connect(G_OBJECT(data->pipeline), "source-setup",
(GCallback) source_setup_cb, data);
And Put below callback function in your C Code and try now.
static void source_setup_cb(GstElement *pipeline, GstElement *source,
CustomData *data) {
// g_object_get (source, "latency",100, NULL);
__android_log_print(ANDROID_LOG_ERROR, "tutorial-5", "CALL BACK");
//g_object_get(o, "source", &source, NULL);
gint latency = 0; //data->latency;
GValue val = G_VALUE_INIT;
g_value_init(&val, G_TYPE_INT);
g_value_set_int(&val, latency);
g_object_set_property(source, "latency", &val);
}
I have solved 2 to 3 Second latency to 800 ms using above function.
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-prevent-latency-from-changing-tp4676382p4676408.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list