summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/file_list.c2
-rw-r--r--src/file_list.h2
-rw-r--r--src/writer.c2
-rw-r--r--src/writer.h4
4 files changed, 5 insertions, 5 deletions
diff --git a/src/file_list.c b/src/file_list.c
index f3c76fd..c1e7263 100644
--- a/src/file_list.c
+++ b/src/file_list.c
@@ -121,7 +121,7 @@ int file_list_remove(file_list_t* list, int fd)
return 0;
}
-int file_list_call_post_process(file_list_t* list, int fd, const char* script)
+int file_list_call_post_process(file_list_t* list, int fd, char* script)
{
if(!list || !(list->mutex_))
return -1;
diff --git a/src/file_list.h b/src/file_list.h
index b33ee51..1e84266 100644
--- a/src/file_list.h
+++ b/src/file_list.h
@@ -54,7 +54,7 @@ int file_list_init(file_list_t* list);
void file_list_clear(file_list_t* list);
file_t* file_list_add(file_list_t* list, struct tm* time, const char* type, const char* format, const char* dir, mode_t mode);
int file_list_remove(file_list_t* list, int fd);
-int file_list_call_post_process(file_list_t* list, int fd, const char* script);
+int file_list_call_post_process(file_list_t* list, int fd, char* script);
int file_list_waitpid(file_list_t* list);
int open_file(file_t* file);
diff --git a/src/writer.c b/src/writer.c
index ce89ad9..1355125 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -92,7 +92,7 @@ static void fdremoved_cb(GstElement* sink, gint fd, gpointer data)
file_list_remove(&(writer->files_), fd);
}
-int writer_init(writer_t* writer, GMainLoop *loop, const char* name_format, mode_t mode, const char* output_dir, int interval, int offset, const char* post_process)
+int writer_init(writer_t* writer, GMainLoop *loop, const char* name_format, mode_t mode, const char* output_dir, int interval, int offset, char* post_process)
{
if(!writer)
return -1;
diff --git a/src/writer.h b/src/writer.h
index e9d6b71..353e909 100644
--- a/src/writer.h
+++ b/src/writer.h
@@ -43,7 +43,7 @@ struct writer_struct {
mode_t mode_;
GstClockTime interval_;
GstClockTime offset_;
- const char* post_process_;
+ char* post_process_;
file_list_t files_;
file_t* current_;
file_t* next_;
@@ -51,7 +51,7 @@ struct writer_struct {
};
typedef struct writer_struct writer_t;
-int writer_init(writer_t* writer, GMainLoop *loop, const char* name_format, mode_t mode, const char* output_dir, int interval, int offset, const char* post_process);
+int writer_init(writer_t* writer, GMainLoop *loop, const char* name_format, mode_t mode, const char* output_dir, int interval, int offset, char* post_process);
int writer_start(writer_t* writer);
void writer_stop(writer_t* writer);