File fixes.patch of Package ccextractor
Index: ccextractor-0.87/src/GUI/ccx_cli_thread.c
===================================================================
--- ccextractor-0.87.orig/src/GUI/ccx_cli_thread.c
+++ ccextractor-0.87/src/GUI/ccx_cli_thread.c
@@ -50,7 +50,7 @@ void* read_activity_data(void *read_args
if(wait == MAX_WAIT)
{
read_params->main_threadsettings->threadPopup = nk_true;
- return 0;
+ return NULL;
}
}
@@ -85,6 +85,7 @@ void* read_activity_data(void *read_args
memset(buffer, 0, sizeof(buffer));
concat_index = 0;
}
+ return NULL;
}
void* read_data_from_thread(void* read_args)
@@ -239,6 +240,7 @@ void* feed_files_for_extraction(void* fi
}
printf("File feeding over\n");
+ return NULL;
}
@@ -324,6 +326,7 @@ void* find_hd_homerun_devices(void *args
}
printf("Find device thread finished\n");
+ return NULL;
}
void* setup_hd_homerun_device(void *args)
@@ -373,4 +376,5 @@ void* setup_hd_homerun_device(void *args
system(target_command);
pthread_exit(0);
+ return NULL;
}
Index: ccextractor-0.87/src/lib_ccx/ccx_encoders_webvtt.c
===================================================================
--- ccextractor-0.87.orig/src/lib_ccx/ccx_encoders_webvtt.c
+++ ccextractor-0.87/src/lib_ccx/ccx_encoders_webvtt.c
@@ -255,6 +255,7 @@ int write_webvtt_header(struct encoder_c
}
context->wrote_webvtt_header = 1; // Do it even if couldn't write the header, because it won't be possible anyway
+ return 0;
}
Index: ccextractor-0.87/src/lib_ccx/ocr.c
===================================================================
--- ccextractor-0.87.orig/src/lib_ccx/ocr.c
+++ ccextractor-0.87/src/lib_ccx/ocr.c
@@ -842,10 +842,8 @@ int compare_rect_by_ypos(const void*p1,
if(r1->x > r2->x)
return 1;
}
- else
- {
- return -1;
- }
+
+ return -1;
}
void add_ocrtext2str(char *dest, char *src, const char *crlf, unsigned crlf_length)