Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
5d31da4e
Commit
5d31da4e
authored
Jun 10, 2018
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
variables: replace var_FreeList() with free()
...where applicable.
parent
afdc71f9
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
18 deletions
+19
-18
lib/audio.c
lib/audio.c
+1
-1
lib/video.c
lib/video.c
+3
-3
modules/control/gestures.c
modules/control/gestures.c
+2
-2
modules/control/hotkeys.c
modules/control/hotkeys.c
+11
-10
src/audio_output/output.c
src/audio_output/output.c
+1
-1
src/input/input.c
src/input/input.c
+1
-1
No files found.
lib/audio.c
View file @
5d31da4e
...
...
@@ -402,7 +402,7 @@ int libvlc_audio_set_track( libvlc_media_player_t *p_mi, int i_track )
}
libvlc_printerr
(
"Track identifier not found"
);
end:
var_FreeList
(
&
val_list
,
NULL
);
free
(
val_list
.
p_values
);
vlc_object_release
(
p_input_thread
);
return
i_ret
;
}
...
...
lib/video.c
View file @
5d31da4e
...
...
@@ -375,7 +375,7 @@ int libvlc_video_set_spu( libvlc_media_player_t *p_mi, int i_spu )
libvlc_printerr
(
"Track identifier not found"
);
end:
vlc_object_release
(
p_input_thread
);
var_F
ree
L
ist
(
&
list
,
NULL
);
f
ree
(
l
ist
.
p_values
);
return
i_ret
;
}
...
...
@@ -462,7 +462,7 @@ static void teletext_enable( input_thread_t *p_input_thread, bool b_enable )
var_SetInteger
(
p_input_thread
,
"spu-es"
,
list
.
p_values
[
0
].
i_int
);
var_FreeList
(
&
list
,
NULL
);
free
(
list
.
p_values
);
}
}
else
...
...
@@ -592,7 +592,7 @@ int libvlc_video_set_track( libvlc_media_player_t *p_mi, int i_track )
}
libvlc_printerr
(
"Track identifier not found"
);
end:
var_FreeList
(
&
val_list
,
NULL
);
free
(
val_list
.
p_values
);
vlc_object_release
(
p_input_thread
);
return
i_ret
;
}
...
...
modules/control/gestures.c
View file @
5d31da4e
...
...
@@ -305,7 +305,7 @@ static void ProcessGesture( intf_thread_t *p_intf )
var_SetInteger
(
p_input
,
"audio-es"
,
list
.
p_values
[
i
].
i_int
);
}
var_FreeList
(
&
list
,
NULL
);
free
(
list
.
p_values
);
vlc_object_release
(
p_input
);
break
;
}
...
...
@@ -344,7 +344,7 @@ static void ProcessGesture( intf_thread_t *p_intf )
var_SetInteger
(
p_input
,
"audio-es"
,
list
.
p_values
[
i
].
i_int
);
}
var_FreeList
(
&
list
,
NULL
);
free
(
list
.
p_values
);
vlc_object_release
(
p_input
);
break
;
}
...
...
modules/control/hotkeys.c
View file @
5d31da4e
...
...
@@ -638,13 +638,14 @@ static int PutAction( intf_thread_t *p_intf, input_thread_t *p_input,
if
(
count
<
1
||
val
.
i_int
<
0
)
{
DisplayMessage
(
p_vout
,
_
(
"No active subtitle"
)
);
var_FreeList
(
&
list
,
NULL
);
break
;
}
else
{
p_sys
->
subtitle_delaybookmarks
.
i_time_subtitle
=
mdate
();
DisplayMessage
(
p_vout
,
DisplayMessage
(
p_vout
,
_
(
"Sub sync: bookmarked subtitle time"
));
var_FreeList
(
&
list
,
NULL
);
}
free
(
list
.
p_values
);
}
break
;
case
ACTIONID_SUBSYNC_APPLY
:
...
...
@@ -708,7 +709,7 @@ static int PutAction( intf_thread_t *p_intf, input_thread_t *p_input,
if
(
count
<
1
||
val
.
i_int
<
0
)
{
DisplayMessage
(
p_vout
,
_
(
"No active subtitle"
)
);
var_FreeList
(
&
list
,
NULL
);
free
(
list
.
p_values
);
break
;
}
int64_t
i_delay
=
var_GetInteger
(
p_input
,
"spu-delay"
)
+
diff
;
...
...
@@ -717,7 +718,7 @@ static int PutAction( intf_thread_t *p_intf, input_thread_t *p_input,
ClearChannels
(
p_vout
,
slider_chan
);
DisplayMessage
(
p_vout
,
_
(
"Subtitle delay %i ms"
),
(
int
)(
i_delay
/
1000
)
);
var_FreeList
(
&
list
,
NULL
);
free
(
list
.
p_values
);
}
break
;
}
...
...
@@ -1356,7 +1357,7 @@ static int PutAction( intf_thread_t *p_intf, input_thread_t *p_input,
{
DisplayMessage
(
p_vout
,
_
(
"Subtitle position: no active subtitle"
)
);
var_FreeList
(
&
list
,
NULL
);
free
(
list
.
p_values
);
break
;
}
...
...
@@ -1368,7 +1369,7 @@ static int PutAction( intf_thread_t *p_intf, input_thread_t *p_input,
ClearChannels
(
p_vout
,
slider_chan
);
DisplayMessage
(
p_vout
,
_
(
"Subtitle position %d px"
),
i_pos
);
var_FreeList
(
&
list
,
NULL
);
free
(
list
.
p_values
);
}
break
;
}
...
...
src/audio_output/output.c
View file @
5d31da4e
...
...
@@ -482,7 +482,7 @@ static void aout_PrepareStereoMode (audio_output_t *aout,
if
(
vals
.
p_values
[
i
].
i_int
==
i_output_mode
)
mode_available
=
true
;
}
var_FreeList
(
&
vals
,
NULL
);
free
(
vals
.
p_values
);
}
if
(
!
mode_available
)
i_output_mode
=
i_default_mode
;
...
...
src/input/input.c
View file @
5d31da4e
...
...
@@ -3295,7 +3295,7 @@ static int input_SlaveSourceAdd( input_thread_t *p_input,
es_out_Control
(
input_priv
(
p_input
)
->
p_es_out_display
,
ES_OUT_SET_ES_DEFAULT_BY_ID
,
i_id
);
es_out_Control
(
input_priv
(
p_input
)
->
p_es_out_display
,
ES_OUT_SET_ES_BY_ID
,
i_id
);
}
var_FreeList
(
&
list
,
NULL
);
free
(
list
.
p_values
);
return
VLC_SUCCESS
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment