Fix bug in ms_find_element_in_bin_by_type() 24/235724/1
authorSangchul Lee <sc11.lee@samsung.com>
Tue, 9 Jun 2020 06:19:22 +0000 (15:19 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Tue, 9 Jun 2020 06:22:32 +0000 (15:22 +0900)
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 <sc11.lee@samsung.com>
packaging/capi-media-streamer.spec
src/media_streamer_gst.c

index b5fa0e0..bb12a9f 100644 (file)
@@ -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
index 8ce9e6c..7eae374 100644 (file)
@@ -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) ||