mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
Fix compile warnings with gcc 4.0.1.
This commit is contained in:
parent
600516be90
commit
195883b30a
4 changed files with 13 additions and 13 deletions
|
@ -881,7 +881,7 @@ gst_jpeg_dec_chain (GstPad * pad, GstBuffer * buf)
|
|||
(dec->segment.stop != -1) &&
|
||||
(GST_BUFFER_SIZE (dec->tempbuf) < dec->segment.stop)) {
|
||||
/* We assume that non-packetized input in bytes is *one* single jpeg image */
|
||||
GST_DEBUG ("Non-packetized mode. Got %d bytes, need %d",
|
||||
GST_DEBUG ("Non-packetized mode. Got %d bytes, need %" G_GINT64_FORMAT,
|
||||
GST_BUFFER_SIZE (dec->tempbuf), dec->segment.stop);
|
||||
goto need_more_data;
|
||||
}
|
||||
|
|
|
@ -1231,7 +1231,7 @@ gst_avi_demux_parse_subindex (GstAviDemux * avi,
|
|||
entries_list = g_list_prepend (entries_list, entry);
|
||||
}
|
||||
|
||||
GST_INFO_OBJECT (avi, "Parsed index, %6lu/%6lu entries, %5lu keyframes, "
|
||||
GST_INFO_OBJECT (avi, "Parsed index, %6u/%6u entries, %5lu keyframes, "
|
||||
"entry size = %2u, total size = %10d", i, num, _nr_keyframes,
|
||||
(gint) sizeof (gst_avi_index_entry),
|
||||
(gint) (i * sizeof (gst_avi_index_entry)));
|
||||
|
@ -1581,7 +1581,7 @@ gst_avi_demux_parse_stream (GstAviDemux * avi, GstBuffer * buf)
|
|||
s_dur = gst_util_uint64_scale (GST_SECOND, strh->scale, strh->rate);
|
||||
GST_DEBUG_OBJECT (avi, "verifying stream framerate %d/%d, "
|
||||
"frame duration = %d ms", strh->rate, strh->scale,
|
||||
s_dur / GST_MSECOND);
|
||||
(gint) (s_dur / GST_MSECOND));
|
||||
if (h_dur > (10 * GST_MSECOND) && (s_dur > 10 * h_dur)) {
|
||||
strh->rate = GST_SECOND / GST_USECOND;
|
||||
strh->scale = h_dur / GST_USECOND;
|
||||
|
|
|
@ -31,7 +31,7 @@ FLV_GET_STRING (GstByteReader * reader)
|
|||
{
|
||||
guint16 string_size = 0;
|
||||
gchar *string = NULL;
|
||||
const guint8 *str;
|
||||
const guint8 *str = NULL;
|
||||
|
||||
g_return_val_if_fail (reader != NULL, NULL);
|
||||
|
||||
|
@ -150,7 +150,7 @@ gst_flv_parse_metadata_item (GstFLVDemux * demux, GstByteReader * reader,
|
|||
switch (tag_type) {
|
||||
case 0: // Double
|
||||
{ /* Use a union to read the uint64 and then as a double */
|
||||
gdouble d;
|
||||
gdouble d = 0;
|
||||
|
||||
if (!gst_byte_reader_get_float64_be (reader, &d))
|
||||
goto error;
|
||||
|
@ -176,7 +176,7 @@ gst_flv_parse_metadata_item (GstFLVDemux * demux, GstByteReader * reader,
|
|||
}
|
||||
case 1: // Boolean
|
||||
{
|
||||
guint8 b;
|
||||
guint8 b = 0;
|
||||
|
||||
if (!gst_byte_reader_get_uint8 (reader, &b))
|
||||
goto error;
|
||||
|
@ -243,7 +243,7 @@ gst_flv_parse_metadata_item (GstFLVDemux * demux, GstByteReader * reader,
|
|||
}
|
||||
case 8: // ECMA array
|
||||
{
|
||||
guint32 nb_elems;
|
||||
guint32 nb_elems = 0;
|
||||
gboolean end_of_object_marker = FALSE;
|
||||
|
||||
if (!gst_byte_reader_get_uint32_be (reader, &nb_elems))
|
||||
|
@ -278,7 +278,7 @@ gst_flv_parse_metadata_item (GstFLVDemux * demux, GstByteReader * reader,
|
|||
}
|
||||
case 10: // Array
|
||||
{
|
||||
guint32 nb_elems;
|
||||
guint32 nb_elems = 0;
|
||||
|
||||
if (!gst_byte_reader_get_uint32_be (reader, &nb_elems))
|
||||
goto error;
|
||||
|
@ -298,7 +298,7 @@ gst_flv_parse_metadata_item (GstFLVDemux * demux, GstByteReader * reader,
|
|||
}
|
||||
|
||||
while (nb_elems--) {
|
||||
guint8 elem_type;
|
||||
guint8 elem_type = 0;
|
||||
|
||||
if (!gst_byte_reader_get_uint8 (reader, &elem_type))
|
||||
goto error;
|
||||
|
@ -331,8 +331,8 @@ gst_flv_parse_metadata_item (GstFLVDemux * demux, GstByteReader * reader,
|
|||
}
|
||||
case 11: // Date
|
||||
{
|
||||
gdouble d;
|
||||
gint16 i;
|
||||
gdouble d = 0;
|
||||
gint16 i = 0;
|
||||
|
||||
if (!gst_byte_reader_get_float64_be (reader, &d))
|
||||
goto error;
|
||||
|
@ -366,7 +366,7 @@ gst_flv_parse_tag_script (GstFLVDemux * demux, GstBuffer * buffer)
|
|||
{
|
||||
GstFlowReturn ret = GST_FLOW_OK;
|
||||
GstByteReader reader = GST_BYTE_READER_INIT_FROM_BUFFER (buffer);
|
||||
guint8 type;
|
||||
guint8 type = 0;
|
||||
|
||||
g_return_val_if_fail (GST_BUFFER_SIZE (buffer) >= 7, GST_FLOW_ERROR);
|
||||
|
||||
|
|
|
@ -978,7 +978,7 @@ string_utf8_dup (const gchar * start, const guint size)
|
|||
if ((utf8 =
|
||||
g_convert (start, size, "UTF-8", *c, &bytes_read, NULL, NULL))) {
|
||||
if (bytes_read == size) {
|
||||
GST_DEBUG ("Using charset %s to interperate id3 tags\n", c);
|
||||
GST_DEBUG ("Using charset %s to interperate id3 tags\n", *c);
|
||||
g_strfreev (csets);
|
||||
goto beach;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue