#24 Retrieving the originalairdate string fails if it empty

libcmyth (5)

It seems my MythTV always inserts 0000-00-00 00:00:00 into the database for the originalairdate in the recorded table. MVPMC seems to crash on this value
as the backend returns '' as the timestamp value.

I wrote this patch which solves this problem for me.


  • Nobody/Anonymous

    GIT diff from my patch. I compiled and tested it.

  • Jon Gettler

    Jon Gettler - 2008-05-18

    Logged In: YES
    Originator: NO

    This doesn't really seem to be the correct solution. You'll just end up masking a real problem, if one occurs.

    Which libcmyth function is the source of the error in your case? And which mythtv version are you using? cmyth_rcv_timestamp() does allow for a timestamp to be a single space character. Perhaps this should also allow zero characters to be valid.

  • Daan de Beer

    Daan de Beer - 2008-05-19

    Logged In: YES
    Originator: NO

    I am using this version of the myth backend:

    MythTV Version : 17354
    MythTV Branch : trunk
    Library API : 0.22.20080512-2
    Network Protocol : 40
    QT Version : 4.3.4
    Options compiled in:
    linux release using_alsa using_backend using_frontend using_ivtv using_v4l using_x11 using_xv using_bindings_perl using_bindings_python using_opengl using_ffmpeg_threads

    The problem with the mvpmc occurs in the cmyth_rcv_proginfo(cmyth_conn_t conn, int *err, cmyth_proginfo_t buf, int count) function. The originalairdate seems to be completele empty, therefore the cmyth_rcv_datetime function fails and the retrieval of the list fails. The MVP than reboots and so I can not do anything with it anymore.

    What would be a better solution?

    Regards, Daan


Log in to post a comment.