- eDebug("eServiceDVD::setCutList()");
-
- if (!PyList_Check(list))
- return;
- int size = PyList_Size(list);
- int i;
-
-// m_cue_entries.clear();
-
- for (i=0; i<size; ++i)
- {
- ePyObject tuple = PyList_GET_ITEM(list, i);
- if (!PyTuple_Check(tuple))
- {
- eDebug("non-tuple in cutlist");
- continue;
- }
- if (PyTuple_Size(tuple) != 2)
- {
- eDebug("cutlist entries need to be a 2-tuple");
- continue;
- }
- ePyObject ppts = PyTuple_GET_ITEM(tuple, 0), ptype = PyTuple_GET_ITEM(tuple, 1);
- if (!(PyLong_Check(ppts) && PyInt_Check(ptype)))
- {
- eDebug("cutlist entries need to be (pts, type)-tuples (%d %d)", PyLong_Check(ppts), PyInt_Check(ptype));
- continue;
- }
-// pts_t pts = PyLong_AsLongLong(ppts);
- m_cue_pts = PyLong_AsLongLong(ppts);
- int type = PyInt_AsLong(ptype);
-// m_cue_entries.insert(cueEntry(pts, type));
- eDebug("eServiceDVD::setCutList() adding %08llx, %d", m_cue_pts, type);
- }
- m_cuesheet_changed = 1;
-
-// cutlistToCuesheet();
- m_event((iPlayableService*)this, evCuesheetChanged);