X-Git-Url: https://git.ao2.it/gst-aseq-appsrc.git/blobdiff_plain/2dcd337c4aad9ce7a8a0b06e9243b3adb05ecb95..2afa5b9c77d328add374a98e6b93452b5c2d4c4c:/gst-aseq-appsrc.c diff --git a/gst-aseq-appsrc.c b/gst-aseq-appsrc.c index 4988dc2..506409e 100644 --- a/gst-aseq-appsrc.c +++ b/gst-aseq-appsrc.c @@ -75,6 +75,12 @@ init_seq (App * app) goto error; } + /* + * Prevent Valgrind from reporting cached configuration as memory leaks, see: + * http://git.alsa-project.org/?p=alsa-lib.git;a=blob;f=MEMORY-LEAK;hb=HEAD + */ + snd_config_update_free_global(); + ret = snd_seq_set_client_name (app->seq, DEFAULT_CLIENT_NAME); if (ret < 0) { GST_ERROR ("Cannot set client name - %s", snd_strerror (ret)); @@ -182,8 +188,6 @@ push_buffer (App * app, gpointer data, guint size) GST_BUFFER_DTS (buffer) = time; GST_BUFFER_PTS (buffer) = time; - GST_BUFFER_OFFSET (buffer) = time; - GST_BUFFER_DURATION (buffer) = DEFAULT_TICK_PERIOD_MS * GST_MSECOND; local_data = g_memdup (data, size);