[vlc-commits] Add deprecated alias for the most common caching values

Rémi Denis-Courmont git at videolan.org
Tue Aug 30 20:55:18 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug 30 21:05:01 2011 +0300| [882e79a8c541206942f78337f074849620adfa01] | committer: Rémi Denis-Courmont

Add deprecated alias for the most common caching values

Note that VLC does not support more than one alias per item.

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

 src/libvlc-module.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/libvlc-module.c b/src/libvlc-module.c
index d324471..f454e1d 100644
--- a/src/libvlc-module.c
+++ b/src/libvlc-module.c
@@ -1919,14 +1919,21 @@ vlc_module_begin ()
                  CAPTURE_CACHING_TEXT, CAPTURE_CACHING_LONGTEXT, true )
         change_integer_range( 0, 60000 )
         change_safe()
+#if defined (__linux__)
+        add_deprecated_alias( "v4l2-caching" ) /* 1.2.0 */
+#elif defined (WIN32)
+        add_deprecated_alias( "dshow-caching" ) /* 1.2.0 */
+#endif
     add_integer( "disc-caching", DEFAULT_PTS_DELAY / 1000,
                  DISC_CACHING_TEXT, DISC_CACHING_LONGTEXT, true )
         change_integer_range( 0, 60000 )
         change_safe()
+        add_deprecated_alias( "dvdnav-caching" ) /* 1.2.0 */
     add_integer( "network-caching", CLOCK_FREQ / 1000,
                  NETWORK_CACHING_TEXT, NETWORK_CACHING_LONGTEXT, true )
         change_integer_range( 0, 60000 )
         change_safe()
+        add_deprecated_alias( "http-caching" ) /* 1.2.0 */
 
     add_integer( "cr-average", 40, CR_AVERAGE_TEXT,
                  CR_AVERAGE_LONGTEXT, true )



More information about the vlc-commits mailing list