]> git.sesse.net Git - vlc/blobdiff - modules/video_filter/audiobargraph_v.c
Add includes guards to cdrom.h
[vlc] / modules / video_filter / audiobargraph_v.c
index 5fa71f89904b40be528327c0b830365be053b5ca..bde9b083dd4f392d57fb8b7e8b163a5c1e60c03f 100644 (file)
@@ -162,7 +162,7 @@ static float iec_scale(float dB)
         return (dB + 70.0f) * 0.0025f;
     if (dB < -50.0f)
         return (dB + 60.0f) * 0.005f + 0.025f;
-    if (dB < -40.0)
+    if (dB < -40.0f)
         return (dB + 50.0f) * 0.0075f + 0.075f;
     if (dB < -30.0f)
         return (dB + 40.0f) * 0.015f + 0.15f;
@@ -400,7 +400,7 @@ static subpicture_t *FilterSub(filter_t *p_filter, mtime_t date)
     p_region = subpicture_region_New(&fmt);
     if (!p_region) {
         msg_Err(p_filter, "cannot allocate SPU region");
-        filter_DeleteSubpicture(p_filter, p_spu);
+        subpicture_Delete(p_spu);
         p_spu = NULL;
         goto exit;
     }