diff options
author | Christian Pointner <equinox@helsinki.at> | 2012-09-25 11:16:43 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2012-09-25 11:16:43 (GMT) |
commit | 9297e482f3a4404c08f66056a735e01dc72dcc65 (patch) | |
tree | 7a265d0d3371625da612f7a9fa49fca7a50999e6 /src | |
parent | f03b88e11ce58d7e77a2c43dd8609126d0347fd2 (diff) |
fixed remaining warning
Diffstat (limited to 'src')
-rw-r--r-- | src/file_list.c | 2 | ||||
-rw-r--r-- | src/file_list.h | 2 | ||||
-rw-r--r-- | src/writer.c | 2 | ||||
-rw-r--r-- | src/writer.h | 4 |
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); |