Resampler seems to be working for all values of rate
[debian/gnuradio] / gnuradio-core / src / lib / general / gr_head.cc
index fbfd0ab1fdcb7aae317474ad10531fd318fbce91..01035ffcdac02ad0ef15641921b2f7850d564221 100644 (file)
@@ -1,12 +1,12 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2004 Free Software Foundation, Inc.
+ * Copyright 2004,2009 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  * 
  * GNU Radio is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
+ * the Free Software Foundation; either version 3, or (at your option)
  * any later version.
  * 
  * GNU Radio is distributed in the hope that it will be useful,
@@ -25,6 +25,7 @@
 #endif
 #include <gr_head.h>
 #include <gr_io_signature.h>
+#include <string.h>
 
 gr_head::gr_head (size_t sizeof_stream_item, int nitems)
   : gr_sync_block ("head",
@@ -34,10 +35,10 @@ gr_head::gr_head (size_t sizeof_stream_item, int nitems)
 {
 }
 
-gr_block_sptr
+gr_head_sptr
 gr_make_head (size_t sizeof_stream_item, int nitems)
 {
-  return gr_block_sptr (new gr_head (sizeof_stream_item, nitems));
+  return gnuradio::get_initial_sptr(new gr_head (sizeof_stream_item, nitems));
 }
 
 int