]> git.vomp.tv Git - vompserver.git/commitdiff
Patch from Dave Pickles for VDR 1.3 recording summary
authorChris Tallon <chris@vomp.tv>
Sun, 31 Jul 2005 16:52:51 +0000 (16:52 +0000)
committerChris Tallon <chris@vomp.tv>
Sun, 31 Jul 2005 16:52:51 +0000 (16:52 +0000)
mvpclient.c

index a678a6b0e080bebe2f0598dbe75cd789cd772168..1a66fc414f0daa40d222178d942cb140de77afa6 100644 (file)
@@ -331,7 +331,14 @@ void MVPClient::processGetSummary(unsigned char* data, int length)
 #if VDRVERSNUM < 10300
     point = (char*)recording->Summary();
 #else
-    point = (char*)recording->Info()->ShortText();
+    const cRecordingInfo *Info = recording->Info();
+    point = (char*)Info->ShortText();
+    printf("info pointer %p\nsummary pointer %p\n", Info, point);
+    if (isempty(point))
+    {
+      point = (char*)Info->Description();
+      printf("description pointer %p\n", point);
+    }
 #endif
     strcpy((char*)&sendBuffer[count], point);
     count += strlen(point) + 1;