diff options
author | Christian Pointner <equinox@helsinki.at> | 2011-04-15 15:37:58 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2011-04-15 15:37:58 (GMT) |
commit | 5e183ae4ee1871b16689ef7d374474a71823ffb8 (patch) | |
tree | b65b32803dbd210d6474dd3c3947682b2460530f /src/writer.h | |
parent | 928303f9cc1f8daf8eb86ddcff842dfd7171f538 (diff) |
writer thread stops loop at end of execution
Diffstat (limited to 'src/writer.h')
-rw-r--r-- | src/writer.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/writer.h b/src/writer.h index f39b659..9e21dd3 100644 --- a/src/writer.h +++ b/src/writer.h @@ -29,6 +29,7 @@ #define RHARCHIVE_writer_h_INCLUDED #include <gst/gst.h> +#include <glib.h> #include <time.h> struct file_struct { @@ -38,6 +39,7 @@ struct file_struct { typedef struct file_struct file_t; struct writer_struct { + GMainLoop *loop_; GstElement* sink_; GstClock* clock_; GstClockID clock_id_; @@ -52,7 +54,7 @@ struct writer_struct { }; typedef struct writer_struct writer_t; -int writer_init(writer_t* writer, const char* name_format, const char* output_dir, int interval, int offset); +int writer_init(writer_t* writer, GMainLoop *loop, const char* name_format, const char* output_dir, int interval, int offset); int writer_start(writer_t* writer); void writer_stop(writer_t* writer); |