+2006-10-16 Tim-Philipp Müller <tim at centricular dot net>
+
+ Patch by: Josep Torra Valles <josep at fluendo com>
+
+ * gst/iec958/ac3_padder.c: (ac3p_init):
+ * gst/mpegstream/gstmpegparse.c:
+ * gst/realmedia/rmdemux.c: (gst_rmdemux_parse__rmf),
+ (gst_rmdemux_parse_prop), (gst_rmdemux_parse_mdpr),
+ (gst_rmdemux_parse_indx), (gst_rmdemux_parse_indx_data),
+ (gst_rmdemux_parse_data), (gst_rmdemux_parse_cont),
+ (gst_rmdemux_parse_packet):
+ Misc. fixes for problems discovered by Forte (different return types
+ in function declaration and definition, pointer arithmetics with
+ void pointers). Fixes #362639.
+
2006-10-13 Tim-Philipp Müller <tim at centricular dot net>
* ext/dvdread/dvdreadsrc.c: (gst_dvd_read_src_goto_title):
static gboolean gst_rmdemux_perform_seek (GstRMDemux * rmdemux,
GstEvent * event);
-static void gst_rmdemux_parse__rmf (GstRMDemux * rmdemux, const void *data,
+static void gst_rmdemux_parse__rmf (GstRMDemux * rmdemux, const guint8 * data,
int length);
-static void gst_rmdemux_parse_prop (GstRMDemux * rmdemux, const void *data,
+static void gst_rmdemux_parse_prop (GstRMDemux * rmdemux, const guint8 * data,
int length);
static void gst_rmdemux_parse_mdpr (GstRMDemux * rmdemux,
- const void *data, int length);
-static guint gst_rmdemux_parse_indx (GstRMDemux * rmdemux, const void *data,
+ const guint8 * data, int length);
+static guint gst_rmdemux_parse_indx (GstRMDemux * rmdemux, const guint8 * data,
int length);
-static void gst_rmdemux_parse_data (GstRMDemux * rmdemux, const void *data,
+static void gst_rmdemux_parse_data (GstRMDemux * rmdemux, const guint8 * data,
int length);
-static void gst_rmdemux_parse_cont (GstRMDemux * rmdemux, const void *data,
+static void gst_rmdemux_parse_cont (GstRMDemux * rmdemux, const guint8 * data,
int length);
static GstFlowReturn gst_rmdemux_parse_packet (GstRMDemux * rmdemux,
- const void *data, guint16 version, guint16 length);
-static void gst_rmdemux_parse_indx_data (GstRMDemux * rmdemux, const void *data,
- int length);
+ const guint8 * data, guint16 version, guint16 length);
+static void gst_rmdemux_parse_indx_data (GstRMDemux * rmdemux,
+ const guint8 * data, int length);
static void gst_rmdemux_stream_clear_cached_subpackets (GstRMDemux * rmdemux,
GstRMDemuxStream * stream);
static GstRMDemuxStream *gst_rmdemux_get_stream_by_id (GstRMDemux * rmdemux,
}
static void
-gst_rmdemux_parse__rmf (GstRMDemux * rmdemux, const void *data, int length)
+gst_rmdemux_parse__rmf (GstRMDemux * rmdemux, const guint8 * data, int length)
{
GST_LOG_OBJECT (rmdemux, "file_version: %d", RMDEMUX_GUINT32_GET (data));
GST_LOG_OBJECT (rmdemux, "num_headers: %d", RMDEMUX_GUINT32_GET (data + 4));
}
static void
-gst_rmdemux_parse_prop (GstRMDemux * rmdemux, const void *data, int length)
+gst_rmdemux_parse_prop (GstRMDemux * rmdemux, const guint8 * data, int length)
{
GST_LOG_OBJECT (rmdemux, "max bitrate: %d", RMDEMUX_GUINT32_GET (data));
GST_LOG_OBJECT (rmdemux, "avg bitrate: %d", RMDEMUX_GUINT32_GET (data + 4));
}
static void
-gst_rmdemux_parse_mdpr (GstRMDemux * rmdemux, const void *data, int length)
+gst_rmdemux_parse_mdpr (GstRMDemux * rmdemux, const guint8 * data, int length)
{
GstRMDemuxStream *stream;
char *stream1_type_string;
}
static guint
-gst_rmdemux_parse_indx (GstRMDemux * rmdemux, const void *data, int length)
+gst_rmdemux_parse_indx (GstRMDemux * rmdemux, const guint8 * data, int length)
{
int n;
int id;
}
static void
-gst_rmdemux_parse_indx_data (GstRMDemux * rmdemux, const void *data, int length)
+gst_rmdemux_parse_indx_data (GstRMDemux * rmdemux, const guint8 * data,
+ int length)
{
int i;
int n;
}
static void
-gst_rmdemux_parse_data (GstRMDemux * rmdemux, const void *data, int length)
+gst_rmdemux_parse_data (GstRMDemux * rmdemux, const guint8 * data, int length)
{
rmdemux->n_chunks = RMDEMUX_GUINT32_GET (data);
rmdemux->data_offset = RMDEMUX_GUINT32_GET (data + 4);
}
static void
-gst_rmdemux_parse_cont (GstRMDemux * rmdemux, const void *data, int length)
+gst_rmdemux_parse_cont (GstRMDemux * rmdemux, const guint8 * data, int length)
{
GstTagList *tags;
}
static GstFlowReturn
-gst_rmdemux_parse_packet (GstRMDemux * rmdemux, const void *data,
+gst_rmdemux_parse_packet (GstRMDemux * rmdemux, const guint8 * data,
guint16 version, guint16 length)
{
guint16 id;