Re: [Mvpmc-devel] [Mvpmc-users] MythTV 0.23rc
Status: Alpha
Brought to you by:
gettler
From: Jacob G. J. <gry...@gm...> - 2010-05-10 11:54:42
|
On 10 May 2010 04:13, Michael Drons <md...@ya...> wrote: > Jacob, Would it not be easier to base the command on the protocol version of mythtv? I believe 0.23 is running protocol version 56. So figure out where/when the message changed? Did it change in version 55, 54, etc???? Then mvpmc could just do a if on the protocol version. Are you thinking along the lines of (for sake of example assumes the change occurred in version 54): --- code snippet --- if (strncmp(tmp, "RECORDING_LIST_CHANGE", 21) == 0) { event = CMYTH_EVENT_RECORDING_LIST_CHANGE; if (protocol >= 54) { if (strcmp(tmp, "RECORDING_LIST_CHANGE UPDATE") == 0) { /* receive a proginfo structure - do nothing with it (yet?)*/ proginfo = cmyth_proginfo_create(); if (!proginfo) { cmyth_dbg(CMYTH_DBG_ERROR, "%s: cmyth_proginfo_create() failed\n", __FUNCTION__); goto fail; } consumed = cmyth_rcv_proginfo(conn, &err, proginfo, count); ref_release(proginfo); proginfo = NULL; count -= consumed; } } } --- Not at my development computer, so cannot produce a real diff. Best regards, Jacob Grydholt |