/* SV module -- interface to the Indigo video board */
+/* WARNING! This module is for hardware that we don't have any more,
+ so it hasn't been tested. It has been converted to the new coding
+ style, and it is possible that this conversion has broken something
+ -- user beware! */
+
#include <sys/time.h>
#include <svideo.h>
#include "Python.h"
void *bitvector = NULL;
PyObject *videodata = NULL;
PyObject *bitvecobj = NULL;
- PyObject* *res = NULL;
+ PyObject *res = NULL;
static PyObject *evenitem, *odditem;
if (!PyArg_Parse(args, "(iiiii)", &info.format,
int bytes;
PyObject *videodata = NULL;
PyObject *res = NULL;
+ char *str;
if (!PyArg_Parse(args, "(iii)", &format, &width, &height))
return NULL;
if (!(videodata = PyString_FromStringAndSize(NULL, bytes)))
return NULL;
- {
- char* str = PyString_AsString(videodata);
- if (!str)
- goto finally;
+ str = PyString_AsString(videodata);
+ if (!str)
+ goto finally;
if (svCaptureOneFrame(self->ob_svideo, format, &width, &height, str)) {
res = sv_error();