Merge remote branch 'origin/pootle-import'
[enigma2.git] / lib / python / Plugins / Extensions / DVDPlayer / src / servicedvd.cpp
index b960ed6712ec3e28ce8cca2033dbef8a5489fa2e..6d1397da4d5e538741c62554ac5fa46cc7b5503d 100644 (file)
@@ -685,7 +685,7 @@ RESULT eServiceDVD::enableSubtitles(eWidget *parent, ePyObject tuple)
 
        m_subtitle_widget = new eSubtitleWidget(parent);
        m_subtitle_widget->resize(parent->size());
-       
+
        int pid = -1;
 
        if ( tuple != Py_None )
@@ -702,6 +702,7 @@ RESULT eServiceDVD::enableSubtitles(eWidget *parent, ePyObject tuple)
                pid = PyInt_AsLong(entry)-1;
 
                ddvd_set_spu(m_ddvdconfig, pid);
+               m_event(this, evUser+7);
        }
        eDebug("eServiceDVD::enableSubtitles %i", pid);
 
@@ -748,7 +749,7 @@ PyObject *eServiceDVD::getSubtitleList()
                ePyObject tuple = PyTuple_New(5);
                PyTuple_SetItem(tuple, 0, PyInt_FromLong(2));
                PyTuple_SetItem(tuple, 1, PyInt_FromLong(spu_id+1));
-               PyTuple_SetItem(tuple, 2, PyInt_FromLong(3));
+               PyTuple_SetItem(tuple, 2, PyInt_FromLong(5));
                PyTuple_SetItem(tuple, 3, PyInt_FromLong(0));
                PyTuple_SetItem(tuple, 4, PyString_FromString(spu_string));
                PyList_Append(l, tuple);