mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-01 09:21:03 +00:00
typefindhelper: Avoid dead assignment
Move variables within the loop (where they are actually used) Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4387>
This commit is contained in:
parent
a40c38eddf
commit
0fa3c5c561
1 changed files with 3 additions and 4 deletions
|
@ -728,10 +728,9 @@ gst_type_find_helper_for_data_with_caps (GstObject * obj,
|
||||||
{
|
{
|
||||||
GstTypeFind *find;
|
GstTypeFind *find;
|
||||||
GstTypeFindData *find_data;
|
GstTypeFindData *find_data;
|
||||||
GstTypeFindFactory *factory;
|
|
||||||
GList *l, *factories = NULL;
|
GList *l, *factories = NULL;
|
||||||
GstCaps *result = NULL;
|
GstCaps *result = NULL;
|
||||||
GstTypeFindProbability found_probability, last_found_probability;
|
GstTypeFindProbability last_found_probability;
|
||||||
|
|
||||||
g_return_val_if_fail (data != NULL, NULL);
|
g_return_val_if_fail (data != NULL, NULL);
|
||||||
g_return_val_if_fail (caps != NULL, NULL);
|
g_return_val_if_fail (caps != NULL, NULL);
|
||||||
|
@ -747,11 +746,11 @@ gst_type_find_helper_for_data_with_caps (GstObject * obj,
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
found_probability = GST_TYPE_FIND_NONE;
|
|
||||||
last_found_probability = GST_TYPE_FIND_NONE;
|
last_found_probability = GST_TYPE_FIND_NONE;
|
||||||
|
|
||||||
for (l = factories; l; l = l->next) {
|
for (l = factories; l; l = l->next) {
|
||||||
factory = GST_TYPE_FIND_FACTORY (l->data);
|
GstTypeFindProbability found_probability;
|
||||||
|
GstTypeFindFactory *factory = GST_TYPE_FIND_FACTORY (l->data);
|
||||||
|
|
||||||
gst_type_find_factory_call_function (factory, find);
|
gst_type_find_factory_call_function (factory, find);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue