summaryrefslogtreecommitdiff
path: root/src/xine-engine
diff options
context:
space:
mode:
Diffstat (limited to 'src/xine-engine')
-rw-r--r--src/xine-engine/buffer.h6
-rw-r--r--src/xine-engine/info_helper.c7
2 files changed, 7 insertions, 6 deletions
diff --git a/src/xine-engine/buffer.h b/src/xine-engine/buffer.h
index 009037c70..4860ed27f 100644
--- a/src/xine-engine/buffer.h
+++ b/src/xine-engine/buffer.h
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: buffer.h,v 1.126 2003/11/20 00:42:14 tmattern Exp $
+ * $Id: buffer.h,v 1.127 2003/12/13 11:35:07 valtri Exp $
*
*
* contents:
@@ -463,7 +463,7 @@ struct fifo_buffer_s
* buffer allocation functions
*/
- buf_element_t *(*buffer_pool_alloc) (fifo_buffer_t *this);
+ buf_element_t *(*buffer_pool_alloc) (fifo_buffer_t *self);
/*
@@ -471,7 +471,7 @@ struct fifo_buffer_s
*/
/* the same as buffer_pool_alloc but may fail if none is available */
- buf_element_t *(*buffer_pool_try_alloc) (fifo_buffer_t *this);
+ buf_element_t *(*buffer_pool_try_alloc) (fifo_buffer_t *self);
/* the same as put but insert at the head of the fifo */
void (*insert) (fifo_buffer_t *fifo, buf_element_t *buf);
diff --git a/src/xine-engine/info_helper.c b/src/xine-engine/info_helper.c
index 5221cd034..fb2a087f6 100644
--- a/src/xine-engine/info_helper.c
+++ b/src/xine-engine/info_helper.c
@@ -20,7 +20,7 @@
* stream metainfo helper functions
* hide some xine engine details from demuxers and reduce code duplication
*
- * $Id: info_helper.c,v 1.6 2003/11/16 23:33:48 f1rmb Exp $
+ * $Id: info_helper.c,v 1.7 2003/12/13 11:35:08 valtri Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -224,10 +224,11 @@ void _x_meta_info_set(xine_stream_t *stream, int info, const char *str) {
void _x_meta_info_n_set(xine_stream_t *stream, int info, const char *buf, int len) {
pthread_mutex_lock(&stream->meta_mutex);
if(__meta_valid(info) && len) {
- char str[len + 1];
+ char *str = xine_xmalloc(len + 1);
snprintf(str, len + 1 , "%s", buf);
- __meta_info_set_unlocked(stream, info, (const char *) &str[0]);
+ __meta_info_set_unlocked(stream, info, (const char *) &str[0]);
+ free(str);
}
pthread_mutex_unlock(&stream->meta_mutex);
}