svn merge -r 21041:21301 https://svn.blender.org/svnroot/bf-blender/branches/blender2...
[blender.git] / source / gameengine / VideoTexture / VideoFFmpeg.cpp
index 1a5481488c05705ec8dddba9974d22b57396c1d6..cf4ea88c1b5556ecb57dc6d715dba8d756ea2998 100644 (file)
@@ -1095,13 +1095,13 @@ PyObject * VideoFFmpeg_getPreseek (PyImage *self, void * closure)
 int VideoFFmpeg_setPreseek (PyImage * self, PyObject * value, void * closure)
 {
        // check validity of parameter
-       if (value == NULL || !PyInt_Check(value))
+       if (value == NULL || !PyLong_Check(value))
        {
                PyErr_SetString(PyExc_TypeError, "The value must be an integer");
                return -1;
        }
        // set preseek
-       getFFmpeg(self)->setPreseek(PyInt_AsLong(value));
+       getFFmpeg(self)->setPreseek(PyLong_AsSsize_t(value));
        // success
        return 0;
 }