mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 05:31:15 +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;
|
||||
GstTypeFindData *find_data;
|
||||
GstTypeFindFactory *factory;
|
||||
GList *l, *factories = 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 (caps != NULL, NULL);
|
||||
|
@ -747,11 +746,11 @@ gst_type_find_helper_for_data_with_caps (GstObject * obj,
|
|||
goto out;
|
||||
}
|
||||
|
||||
found_probability = GST_TYPE_FIND_NONE;
|
||||
last_found_probability = GST_TYPE_FIND_NONE;
|
||||
|
||||
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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue