]> git.sesse.net Git - vlc/blobdiff - python/vlcmodule.c
qt4/*: buildsytem fix + cosmetic+ copyright dates + svn Id
[vlc] / python / vlcmodule.c
index 8f322188983bd9c0e4bef65b5e5254d9bcec6862..22ee8880dca9011361b76f8840253af285bbfc91 100644 (file)
@@ -35,7 +35,7 @@ static PyObject *vlc_addTarget(PyObject *self, PyObject *args)
 
     if (!PyArg_ParseTuple(args, "is", &iVlc, &file))
         return NULL;
-    iRc = VLC_AddTarget(iVlc, file, PLAYLIST_APPEND, PLAYLIST_END);
+    iRc = VLC_AddTarget(iVlc, file, 0, 0, PLAYLIST_APPEND, PLAYLIST_END);
     return Py_BuildValue("i", iRc);
 }
 
@@ -59,7 +59,7 @@ static PyObject *vlc_stop(PyObject *self, PyObject *args)
 
     if (!PyArg_ParseTuple(args, "i", &iVlc))
         return NULL;
-    iRc = VLC_Stop(iVlc);
+    iRc = VLC_CleanUp(iVlc);
     return Py_BuildValue("i", iRc);
 }
 
@@ -77,12 +77,12 @@ static PyObject *vlc_pause(PyObject *self, PyObject *args)
 
 
 static PyMethodDef VlcMethods[] = {
-    {"create", vlc_create, METH_VARARGS, "Create a vlc thread."},
-    {"init", vlc_init, METH_VARARGS, "Initialize a vlc thread."},
-    {"addTarget", vlc_addTarget, METH_VARARGS, "Add a target in the playlist."},
-    {"play", vlc_play, METH_VARARGS, "Play"},
-    {"stop", vlc_stop, METH_VARARGS, "Stop"},
-    {"pause", vlc_pause, METH_VARARGS, "Pause"},
+    {"create", vlc_create, METH_VARARGS, _("Create a vlc thread.")},
+    {"init", vlc_init, METH_VARARGS, _("Initialize a vlc thread.")},
+    {"addTarget", vlc_addTarget, METH_VARARGS, _("Add a target in the playlist.")},
+    {"play", vlc_play, METH_VARARGS, _("Play")},
+    {"stop", vlc_stop, METH_VARARGS, _("Stop")},
+    {"pause", vlc_pause, METH_VARARGS, _("Pause")},
     {NULL, NULL, 0, NULL}        /* Sentinel */
 };