From 4fb7e66bac8ba28a37ff5bbb92fd961f740eb94e Mon Sep 17 00:00:00 2001 From: Sangchul Lee Date: Tue, 9 Jun 2020 15:19:22 +0900 Subject: [PATCH] Fix bug in ms_find_element_in_bin_by_type() Invalid parameter for gst_element_get_factory() is fixed. [Version] 0.1.55 [Issue Type] Bug fix Change-Id: Ic459e16669c27bb2b314921c26f33aa74f13498f Signed-off-by: Sangchul Lee --- packaging/capi-media-streamer.spec | 2 +- src/media_streamer_gst.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/capi-media-streamer.spec b/packaging/capi-media-streamer.spec index b5fa0e0..bb12a9f 100644 --- a/packaging/capi-media-streamer.spec +++ b/packaging/capi-media-streamer.spec @@ -1,6 +1,6 @@ Name: capi-media-streamer Summary: A Media Streamer API -Version: 0.1.54 +Version: 0.1.55 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/media_streamer_gst.c b/src/media_streamer_gst.c index 8ce9e6c..7eae374 100644 --- a/src/media_streamer_gst.c +++ b/src/media_streamer_gst.c @@ -498,7 +498,7 @@ GstElement *ms_find_element_in_bin_by_type(GstElement *bin, node_info_s *node_kl while (GST_ITERATOR_OK == gst_iterator_next(bin_iterator, &element_value)) { next_element = (GstElement *) g_value_get_object(&element_value); - found_klass = gst_element_factory_get_klass(gst_element_get_factory(found_element)); + found_klass = gst_element_factory_get_klass(gst_element_get_factory(next_element)); /* Check if found element is of appropriate needed plugin class */ if (g_strrstr(found_klass, node_klass_type->klass_name) || -- 2.7.4