[vlc-devel] commit: dbus: Fix an integer overflow when seeking more than ~2000 seconds. (Sigmund Augdal )
git version control
git at videolan.org
Fri May 29 12:54:15 CEST 2009
vlc | branch: master | Sigmund Augdal <sigmund at snap.tv> | Fri May 29 12:52:49 2009 +0200| [b01b54b072098e1aa401b5177f156d3e42e04f00] | committer: JP Dinger
dbus: Fix an integer overflow when seeking more than ~2000 seconds.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b01b54b072098e1aa401b5177f156d3e42e04f00
---
modules/control/dbus.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/control/dbus.c b/modules/control/dbus.c
index 9aa7a9d..ce74cc4 100644
--- a/modules/control/dbus.c
+++ b/modules/control/dbus.c
@@ -222,7 +222,7 @@ DBUS_METHOD( PositionSet )
if( p_input )
{
- position.i_time = i_pos * 1000;
+ position.i_time = ((mtime_t)i_pos) * 1000;
var_Set( p_input, "time", position );
vlc_object_release( p_input );
}
More information about the vlc-devel
mailing list