mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
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
This commit is contained in:
parent
a67c739837
commit
2bc75efbf3
9 changed files with 21 additions and 8 deletions
|
@ -1,3 +1,12 @@
|
|||
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;
|
||||
|
|
Loading…
Reference in a new issue