summaryrefslogtreecommitdiff
path: root/src/writer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/writer.c b/src/writer.c
index 68f305c..ce89ad9 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -39,7 +39,7 @@
static int init_time_boundaries(writer_t* writer)
{
if(!writer)
- return;
+ return -1;
struct timespec now;
clock_gettime(CLOCK_REALTIME, &now);
@@ -158,8 +158,6 @@ static int check_boundaries(writer_t* writer)
add_fd(writer, writer->next_->fd_);
remove_fd(writer, writer->current_->fd_);
-
- int old_fd = writer->current_->fd_;
writer->current_ = writer->next_;
writer->next_boundary_.tv_sec += 3600;
@@ -178,7 +176,6 @@ static gpointer writer_thread_func(gpointer data)
writer_t *writer = (writer_t*)data;
log_printf(NOTICE, "writer thread started");
- GstBuffer* buf = NULL;
for(;;) {
GstClockReturn wret = gst_clock_id_wait(writer->clock_id_, NULL);
if(GST_CLOCK_UNSCHEDULED == wret)