[vlc-commits] [Git][videolan/vlc][master] dtv: remove deprecated --dvb-voltage

Rémi Denis-Courmont (@Courmisch) gitlab at videolan.org
Sun Sep 26 07:22:18 UTC 2021



Rémi Denis-Courmont pushed to branch master at VideoLAN / VLC


Commits:
921c02ce by Rémi Denis-Courmont at 2021-09-26T06:20:42+00:00
dtv: remove deprecated --dvb-voltage

Fixes #17029.

- - - - -


1 changed file:

- modules/access/dtv/access.c


Changes:

=====================================
modules/access/dtv/access.c
=====================================
@@ -381,10 +381,7 @@ vlc_module_begin ()
                 POLARIZATION_TEXT, POLARIZATION_LONGTEXT)
         change_string_list (polarization_vlc, polarization_user)
         change_safe ()
-    add_integer ("dvb-voltage", 13, "", "")
-        change_integer_range (0, 18)
-        change_private ()
-        change_safe ()
+    add_obsolete_integer("dvb-voltage") /* deprecated in 1.2, removed in 4.0 */
 #ifdef HAVE_LINUX_DVB
     add_bool ("dvb-high-voltage", false,
               HIGH_VOLTAGE_TEXT, HIGH_VOLTAGE_LONGTEXT)
@@ -747,29 +744,17 @@ static int dvbc_setup (vlc_object_t *obj, dvb_device_t *dev, uint64_t freq)
 /*** DVB-S ***/
 static char var_InheritPolarization (vlc_object_t *obj)
 {
-    char pol;
     char *polstr = var_InheritString (obj, "dvb-polarization");
     if (polstr != NULL)
     {
-        pol = *polstr;
+        char pol = *polstr;
         free (polstr);
         if (unlikely(pol >= 'a' && pol <= 'z'))
             pol -= 'a' - 'A';
         return pol;
     }
 
-    /* Backward compatibility with VLC for Linux < 1.2 */
-    unsigned voltage = var_InheritInteger (obj, "dvb-voltage");
-    switch (voltage)
-    {
-        case 13:  pol = 'V'; break;
-        case 18:  pol = 'H'; break;
-        default:  return 0;
-    }
-
-    msg_Warn (obj, "\"voltage=%u\" option is obsolete. "
-                   "Use \"polarization=%c\" instead.", voltage, pol);
-    return pol;
+    return '\0';
 }
 
 static void sec_setup (vlc_object_t *obj, dvb_device_t *dev, uint64_t freq)



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/921c02ce9cdc36770ff68016d458de5193495b73

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/921c02ce9cdc36770ff68016d458de5193495b73
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list