Changeset 22e96161da1e6f824ff12b90b87e1c38365eb667

Show
Ignore:
Timestamp:
04/07/05 17:39:10 (3 years ago)
Author:
Olivier Aubert <olivier.aubert@liris.cnrs.fr>
git-committer:
Olivier Aubert <olivier.aubert@liris.cnrs.fr> 1120491550 +0000
git-parent:

[f093d59dd7bf73672e549e530ce73858e0c9b477]

git-author:
Olivier Aubert <olivier.aubert@liris.cnrs.fr> 1120491550 +0000
Message:

Add set_visual support in python binding

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bindings/python/vlcglue.c

    rb3f7a2e r22e9616  
    619619} 
    620620 
     621static PyObject* MediaControl_set_visual(PyObject *self, PyObject *args) 
     622{ 
     623  mediacontrol_Exception* exception = NULL; 
     624  WINDOWHANDLE visual; 
     625   
     626  if (!PyArg_ParseTuple(args, "i", &visual)) 
     627     return NULL; 
     628 
     629  Py_BEGIN_ALLOW_THREADS 
     630  MC_TRY; 
     631  mediacontrol_set_visual(SELF->mc, visual, exception); 
     632  Py_END_ALLOW_THREADS 
     633  MC_EXCEPT; 
     634    
     635  Py_INCREF(Py_None); 
     636  return Py_None; 
     637} 
     638 
     639 
    621640/* Method table */ 
    622641static PyMethodDef MediaControl_methods[] = { 
     
    636655  {"sound_get_volume", MediaControl_sound_get_volume, METH_VARARGS, "sound_get_volume() -> int       Get the volume"}, 
    637656  {"sound_set_volume", MediaControl_sound_set_volume, METH_VARARGS, "sound_set_volume(int)           Set the volume"}, 
     657  {"set_visual", MediaControl_set_visual, METH_VARARGS, "set_visual(int)           Set the embedding window visual ID"},   
    638658  {NULL, NULL, 0, NULL}, 
    639659};