Commit 2bc75efb authored by Thomas Vander Stichele's avatar Thomas Vander Stichele
Browse files

gst/elements/: fix some signedness

Original commit message from CVS:

* 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
parent a67c7398
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):
......
......@@ -101,7 +101,7 @@ struct _GstFakeSrc {
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;
......
......@@ -394,7 +394,8 @@ gst_file_sink_render (GstBaseSink * sink, GstBuffer * buffer)
{
GstFileSink *filesink;
guint64 cur_pos;
guint size, back_pending = 0;
guint size;
guint64 back_pending = 0;
size = GST_BUFFER_SIZE (buffer);
......
......@@ -36,6 +36,7 @@
#include "gstfilesrc.h"
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#ifdef HAVE_UNISTD_H
......@@ -731,7 +732,7 @@ gst_file_src_create_read (GstFileSrc * src, guint64 offset, guint length,
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 */
......
......@@ -371,7 +371,7 @@ gst_type_find_element_src_event (GstPad * pad, GstEvent * event)
typedef struct
{
GstTypeFindFactory *factory;
gint probability;
guint probability;
GstCaps *caps;
guint requested_size;
GstTypeFindElement *self;
......
......@@ -101,7 +101,7 @@ struct _GstFakeSrc {
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;
......
......@@ -394,7 +394,8 @@ gst_file_sink_render (GstBaseSink * sink, GstBuffer * buffer)
{
GstFileSink *filesink;
guint64 cur_pos;
guint size, back_pending = 0;
guint size;
guint64 back_pending = 0;
size = GST_BUFFER_SIZE (buffer);
......
......@@ -36,6 +36,7 @@
#include "gstfilesrc.h"
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#ifdef HAVE_UNISTD_H
......@@ -731,7 +732,7 @@ gst_file_src_create_read (GstFileSrc * src, guint64 offset, guint length,
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 */
......
......@@ -371,7 +371,7 @@ gst_type_find_element_src_event (GstPad * pad, GstEvent * event)
typedef struct
{
GstTypeFindFactory *factory;
gint probability;
guint probability;
GstCaps *caps;
guint requested_size;
GstTypeFindElement *self;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment