mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
gst: Don't declare variables inside the for loop header
This is a C99 feature.
This commit is contained in:
parent
8644352155
commit
a9269d37c5
1 changed files with 2 additions and 1 deletions
|
@ -443,8 +443,9 @@ static void
|
|||
add_interlaced_mode_to_caps (GstCaps * caps, const gchar * mode)
|
||||
{
|
||||
GstStructure *s;
|
||||
gint i;
|
||||
|
||||
for (gint i = 0; i < gst_caps_get_size (caps); i++) {
|
||||
for (i = 0; i < gst_caps_get_size (caps); i++) {
|
||||
s = gst_caps_get_structure (caps, i);
|
||||
gst_structure_set (s, "interlace-mode", G_TYPE_STRING, mode, NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue