[vlc-commits] vout: avoid assignment as expression
Rémi Denis-Courmont
git at videolan.org
Mon Aug 13 18:21:06 CEST 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Aug 13 19:18:30 2018 +0300| [e20ba6ad95a1df1c77dcf440ed21ce805b051970] | committer: Rémi Denis-Courmont
vout: avoid assignment as expression
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e20ba6ad95a1df1c77dcf440ed21ce805b051970
---
src/video_output/video_output.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index bd6fef592e..29c97fa5ad 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -736,8 +736,10 @@ static void ThreadChangeFilters(vout_thread_t *vout,
vlc_array_init(&array_static);
vlc_array_init(&array_interactive);
- if ((vout->p->filter.has_deint =
- deinterlace == 1 || (deinterlace == -1 && vout->p->filter.has_deint)))
+ vout->p->filter.has_deint =
+ deinterlace == 1 || (deinterlace == -1 && vout->p->filter.has_deint);
+
+ if (vout->p->filter.has_deint)
{
vout_filter_t *e = malloc(sizeof(*e));
More information about the vlc-commits
mailing list