Merge branch 'bug_672_removed_pvr_device' into experimental
[vuplus_dvbapp] / lib / python / Plugins / Extensions / DVDPlayer / src / servicedvd.cpp
index b960ed6..6d1397d 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);