]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Revert "DVR: handle SM_CODE_USER_REQUEST as a successful case, fixes #4603"
authorJaroslav Kysela <perex@perex.cz>
Wed, 20 Sep 2017 07:42:08 +0000 (09:42 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 20 Sep 2017 07:52:06 +0000 (09:52 +0200)
This reverts commit 519a783747e8075714b4c95a7e216edb53f2e77b.

src/dvr/dvr_db.c

index f9b854a455fa7715133967643626b8f8c258faa9..0435feceac8169f791e0b2910fb1a1c1b6c3afcc 100644 (file)
@@ -142,11 +142,9 @@ int dvr_entry_is_finished(dvr_entry_t *entry, int flags)
 
   int removed = entry->de_file_removed ||                                               /* Removed by tvheadend */
       (entry->de_sched_state != DVR_MISSED_TIME && dvr_get_filesize(entry, 0) == -1);   /* Removed externally? */
-  int success = entry->de_sched_state == DVR_COMPLETED;
-
-  if (success && entry->de_last_error != SM_CODE_USER_REQUEST)
-      success = entry->de_last_error == SM_CODE_OK &&
-                entry->de_data_errors < DVR_MAX_DATA_ERRORS;
+  int success = entry->de_sched_state == DVR_COMPLETED &&
+      entry->de_last_error == SM_CODE_OK &&
+      entry->de_data_errors < DVR_MAX_DATA_ERRORS;
 
   if ((flags & DVR_FINISHED_REMOVED_SUCCESS) && removed && success)
     return 1;
@@ -645,9 +643,10 @@ dvr_entry_status(dvr_entry_t *de)
       case SM_CODE_INVALID_TARGET:
         return N_("File not created");
       case SM_CODE_USER_ACCESS:
+        return N_("User access error");
       case SM_CODE_USER_LIMIT:
+        return N_("User limit reached");
       case SM_CODE_NO_SPACE:
-      case SM_CODE_USER_REQUEST:
         return streaming_code2txt(de->de_last_error);
       default:
         break;