[vlc-commits] audio_output/meter: call filter_Flush() instead of accessing the ops directly

Steve Lhomme git at videolan.org
Tue Oct 13 11:07:02 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Oct  6 11:53:48 2020 +0200| [8f2dea244c9978c4c18ec665b0fe6ed37a34b046] | committer: Steve Lhomme

audio_output/meter: call filter_Flush() instead of accessing the ops directly

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8f2dea244c9978c4c18ec665b0fe6ed37a34b046
---

 src/audio_output/meter.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/audio_output/meter.c b/src/audio_output/meter.c
index 9c8f736512..144a6675fe 100644
--- a/src/audio_output/meter.c
+++ b/src/audio_output/meter.c
@@ -217,8 +217,8 @@ vlc_audio_meter_Flush(struct vlc_audio_meter *meter)
     vlc_list_foreach(plugin, &meter->plugins, node)
     {
         filter_t *filter = plugin->filter;
-        if (filter != NULL && filter->ops->flush != NULL)
-            filter->ops->flush(filter);
+        if (filter != NULL)
+            filter_Flush(filter);
     }
 
     vlc_mutex_unlock(&meter->lock);



More information about the vlc-commits mailing list