[vlc-commits] URational: handle also plain integers
Ilkka Ollakka
git at videolan.org
Sat Feb 15 15:32:13 CET 2014
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Fri Feb 14 21:55:09 2014 +0200| [15b81909f95e1055ae0afbf84586356b0d094da7] | committer: Ilkka Ollakka
URational: handle also plain integers
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=15b81909f95e1055ae0afbf84586356b0d094da7
---
src/misc/variables.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/misc/variables.c b/src/misc/variables.c
index e3d56b7..09f2b97 100644
--- a/src/misc/variables.c
+++ b/src/misc/variables.c
@@ -1278,6 +1278,10 @@ int (var_InheritURational)(vlc_object_t *object,
n = 0;
d = 0;
}
+ } else if ( *next == '\0' ) {
+ /* plain integer given */
+ *num = n;
+ *den = 1;
}
if (n > 0 && d > 0)
More information about the vlc-commits
mailing list