+2005-10-13 Thomas Vander Stichele <thomas at apestaart dot org>
+
+ * gst/elements/gstfakesrc.h:
+ * gst/elements/gstfilesrc.c: (gst_file_src_create_read):
+ * gst/elements/gsttypefindelement.c:
+ fix some signedness
+ * gst/elements/gstfilesink.c: (gst_file_sink_render):
+ I wonder if this could actually write +2GB files before
+
2005-10-13 Andy Wingo <wingo@pobox.com>
* libs/gst/dataprotocol/dataprotocol.c (gst_dp_packet_from_caps):
gboolean segment_loop;
gint num_buffers;
gint rt_num_buffers; /* we are going to change this at runtime */
- guint64 buffer_count;
+ gint64 buffer_count;
gboolean silent;
gboolean signal_handoffs;
gboolean dump;
{
GstFileSink *filesink;
guint64 cur_pos;
- guint size, back_pending = 0;
+ guint size;
+ guint64 back_pending = 0;
size = GST_BUFFER_SIZE (buffer);
#include "gstfilesrc.h"
#include <stdio.h>
+#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#ifdef HAVE_UNISTD_H
goto could_not_read;
/* regular files should have given us what we expected */
- if (ret < length && src->is_regular)
+ if ((gint) ret < length && src->is_regular)
goto unexpected_eos;
/* other files should eos if they read 0 */
typedef struct
{
GstTypeFindFactory *factory;
- gint probability;
+ guint probability;
GstCaps *caps;
guint requested_size;
GstTypeFindElement *self;
gboolean segment_loop;
gint num_buffers;
gint rt_num_buffers; /* we are going to change this at runtime */
- guint64 buffer_count;
+ gint64 buffer_count;
gboolean silent;
gboolean signal_handoffs;
gboolean dump;
{
GstFileSink *filesink;
guint64 cur_pos;
- guint size, back_pending = 0;
+ guint size;
+ guint64 back_pending = 0;
size = GST_BUFFER_SIZE (buffer);
#include "gstfilesrc.h"
#include <stdio.h>
+#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#ifdef HAVE_UNISTD_H
goto could_not_read;
/* regular files should have given us what we expected */
- if (ret < length && src->is_regular)
+ if ((gint) ret < length && src->is_regular)
goto unexpected_eos;
/* other files should eos if they read 0 */
typedef struct
{
GstTypeFindFactory *factory;
- gint probability;
+ guint probability;
GstCaps *caps;
guint requested_size;
GstTypeFindElement *self;