diff --git a/README.md b/README.md index 3af22c4..ea34650 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Wiki](http://developer.ridgerun.com/wiki/index.php?title=GstInterpipe) The API reference is uploaded to [GitHub's project page](http://ridgerun.github.io/gst-interpipe/). -GstInterpipe copyright (C) 2016 RidgeRun LLC +GstInterpipe copyright (C) 2016-2022 RidgeRun LLC This GStreamer plug-in is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/configure.ac b/configure.ac index 31e21d8..34cfd77 100644 --- a/configure.ac +++ b/configure.ac @@ -6,7 +6,7 @@ dnl please read gstreamer/docs/random/autotools before changing this file dnl initialize autoconf dnl releases only do -Wall, git and prerelease does -Werror too dnl use a three digit version number for releases, and four for git/pre -AC_INIT([GstInterpipe],[1.1.7], +AC_INIT([GstInterpipe],[1.1.8], [http://www.github.com/RidgeRun/gst-interpipe-1.0], [gst-interpipe], [http://developer.ridgerun.com/wiki/index.php?title=GstInterpipe]) diff --git a/gst/interpipe/gstinterpipesink.c b/gst/interpipe/gstinterpipesink.c index 4e6eeb3..29d6374 100644 --- a/gst/interpipe/gstinterpipesink.c +++ b/gst/interpipe/gstinterpipesink.c @@ -209,6 +209,11 @@ gst_inter_pipe_sink_init (GstInterPipeSink * sink) g_mutex_init (&sink->listeners_mutex); + /* Set the struct buffer to 0's so if in the future more callbacks are added + * does not cause a segmentation fault down the line + */ + memset (&callbacks, 0, sizeof (callbacks)); + /* AppSink callbacks */ callbacks.eos = GST_DEBUG_FUNCPTR (gst_inter_pipe_sink_eos); callbacks.new_sample = GST_DEBUG_FUNCPTR (gst_inter_pipe_sink_new_buffer); @@ -220,7 +225,7 @@ gst_inter_pipe_sink_init (GstInterPipeSink * sink) gst_base_sink_set_sync (GST_BASE_SINK (sink), FALSE); gst_app_sink_set_max_buffers (GST_APP_SINK (sink), 3); - /* When a change in the interpipesink name happens, the callback function + /* When a change in the interpipesink name happens, the callback function will update the node name and the nodes list */ g_object_notify (G_OBJECT (sink), "name"); @@ -747,9 +752,9 @@ gst_inter_pipe_sink_add_listener (GstInterPipeINode * iface, has_listeners = 0 != g_hash_table_size (listeners); if (!sink->caps_negotiated && !has_listeners - && !gst_caps_is_equal (srccaps, sinkcaps)) { + && !gst_caps_is_equal (srccaps, sinkcaps)) { - if (!gst_pad_push_event (GST_INTER_PIPE_SINK_PAD (sink), + if (!gst_pad_push_event (GST_INTER_PIPE_SINK_PAD (sink), gst_event_new_reconfigure ())) goto reconfigure_event_error; diff --git a/meson.build b/meson.build index 8de7fe1..003cea5 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,5 @@ project('gst-interpipes', 'c', - version : '1.1.7', + version : '1.1.8', meson_version : '>= 0.50',) gst_interpipes_version = meson.project_version()