Printf format fixes.

Original commit message from CVS:
* ext/dvdread/dvdreadsrc.c: (gst_dvd_read_src_goto_title),
(gst_dvd_read_src_handle_seek_event):
* ext/mad/gstid3tag.c: (gst_id3_tag_chain):
* ext/mad/gstmad.c: (gst_mad_src_query), (gst_mad_chain):
* ext/sidplay/gstsiddec.cc:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_parse_data):
* gst/realmedia/rmdemux.c: (gst_rmdemux_loop),
(gst_rmdemux_parse_packet):
Printf format fixes.
This commit is contained in:
Tim-Philipp Müller 2006-10-05 17:07:52 +00:00
parent 8dd0cc1db3
commit 03f40e53fd
8 changed files with 29 additions and 16 deletions

View file

@ -1,3 +1,15 @@
2006-10-05 Tim-Philipp Müller <tim at centricular dot net>
* ext/dvdread/dvdreadsrc.c: (gst_dvd_read_src_goto_title),
(gst_dvd_read_src_handle_seek_event):
* ext/mad/gstid3tag.c: (gst_id3_tag_chain):
* ext/mad/gstmad.c: (gst_mad_src_query), (gst_mad_chain):
* ext/sidplay/gstsiddec.cc:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_parse_data):
* gst/realmedia/rmdemux.c: (gst_rmdemux_loop),
(gst_rmdemux_parse_packet):
Printf format fixes.
2006-10-03 Wim Taymans <wim@fluendo.com>
* gst/realmedia/Makefile.am:

2
common

@ -1 +1 @@
Subproject commit 9991f6fa61ee11475c390dd6675ef7952f079e43
Subproject commit a4af1b8542911352e29d53fba47e2c3d7231ebdb

View file

@ -525,8 +525,8 @@ gst_dvd_read_src_goto_title (GstDvdReadSrc * src, gint title, gint angle)
lang_code[0] = '\0';
}
GST_INFO_OBJECT (src, "[%02d] Subtitle %02d: lang='%s', format=%d",
src->title + 1, i, lang_code);
GST_INFO_OBJECT (src, "[%02d] Subtitle %02d: lang='%s', type=%d",
src->title + 1, i, lang_code, u->type);
}
src->title_lang_event_pending =
@ -1051,7 +1051,7 @@ gst_dvd_read_src_handle_seek_event (GstDvdReadSrc * src, GstEvent * event)
if (new_off < 0 || new_off >= src->num_angles) {
GST_OBJECT_UNLOCK (src);
GST_DEBUG_OBJECT (src, "invalid angle %d, only %d available",
src->num_angles);
src->num_angles, src->num_angles);
return FALSE;
}
src->angle = (gint) new_off;

View file

@ -1243,7 +1243,7 @@ gst_id3_tag_chain (GstPad * pad, GstBuffer * buffer)
gst_buffer_unref (buffer);
if (tag->parse_mode != GST_ID3_TAG_PARSE_ANY) {
/* seek to beginning */
GST_LOG_OBJECT (tag, "seeking back to beginning (offset %d)",
GST_LOG_OBJECT (tag, "seeking back to beginning (offset %ld)",
tag->v2tag_size);
gst_id3_tag_set_state (tag, GST_ID3_TAG_STATE_SEEKING_TO_NORMAL);
if (!gst_pad_push_event (tag->sinkpad,
@ -1276,7 +1276,7 @@ gst_id3_tag_chain (GstPad * pad, GstBuffer * buffer)
/* Collect a large enough chunk to read the tag */
if (GST_BUFFER_SIZE (buffer) < tag->v2tag_size) {
GST_DEBUG_OBJECT (tag,
"Not enough data to read ID3v2. Need %d have %d, waiting for more",
"Not enough data to read ID3v2. Need %ld have %d, waiting for more",
tag->v2tag_size, GST_BUFFER_SIZE (buffer));
tag->buffer = buffer;
return GST_FLOW_OK;

View file

@ -617,7 +617,7 @@ gst_mad_src_query (GstPad * pad, GstQuery * query)
GST_TIME_ARGS (total));
} else {
GST_LOG_OBJECT (mad, "duration=%" G_GINT64_FORMAT " (%s)",
gst_format_get_name (req_format));
total, gst_format_get_name (req_format));
}
break;
}
@ -1348,7 +1348,7 @@ gst_mad_chain (GstPad * pad, GstBuffer * buffer)
}
/* append the chunk to process to our internal temporary buffer */
GST_LOG ("tempbuffer size %d, copying %d bytes from incoming buffer",
GST_LOG ("tempbuffer size %ld, copying %d bytes from incoming buffer",
mad->tempsize, tocopy);
memcpy (mad->tempbuffer + mad->tempsize, data, tocopy);
mad->tempsize += tocopy;
@ -1377,7 +1377,7 @@ gst_mad_chain (GstPad * pad, GstBuffer * buffer)
GST_LOG ("decoding the header now");
if (mad_header_decode (&mad->frame.header, &mad->stream) == -1) {
if (mad->stream.error == MAD_ERROR_BUFLEN) {
GST_LOG ("not enough data in tempbuffer (%d), breaking to get more",
GST_LOG ("not enough data in tempbuffer (%ld), breaking to get more",
mad->tempsize);
break;
} else {
@ -1394,7 +1394,8 @@ gst_mad_chain (GstPad * pad, GstBuffer * buffer)
/* not enough data, need to wait for next buffer? */
if (mad->stream.error == MAD_ERROR_BUFLEN) {
if (mad->stream.next_frame == mad_input_buffer) {
GST_LOG ("not enough data in tempbuffer (%d), breaking to get more",
GST_LOG
("not enough data in tempbuffer (%ld), breaking to get more",
mad->tempsize);
break;
} else {

View file

@ -318,7 +318,7 @@ siddec_negotiate (GstSidDec * siddec)
if (!allowed)
goto nothing_allowed;
GST_DEBUG_OBJECT (siddec, "allowed caps: " GST_PTR_FORMAT, allowed);
GST_DEBUG_OBJECT (siddec, "allowed caps: %" GST_PTR_FORMAT, allowed);
structure = gst_caps_get_structure (allowed, 0);

View file

@ -2614,7 +2614,7 @@ gst_asf_demux_parse_data (GstASFDemux * demux)
data_left = (guint64) gst_adapter_available (demux->adapter);
GST_DEBUG ("STATE_HEADER, avail=%u:", data_left);
GST_DEBUG ("STATE_HEADER, avail=%u", (guint) data_left);
data = (guint8 *) gst_adapter_peek (demux->adapter, data_left);

View file

@ -815,9 +815,9 @@ gst_rmdemux_loop (GstPad * pad)
GST_OBJECT_UNLOCK (rmdemux);
return;
} else {
GST_DEBUG_OBJECT (rmdemux,
"Unable to pull %d bytes at offset %p (pull_range returned %d, state is %d)",
(int) size, rmdemux->offset, ret, GST_STATE (rmdemux));
GST_DEBUG_OBJECT (rmdemux, "Unable to pull %d bytes at offset 0x%08x "
"(pull_range returned flow %s, state is %d)", (gint) size,
rmdemux->offset, gst_flow_get_name (ret), GST_STATE (rmdemux));
goto need_pause;
}
}
@ -1944,7 +1944,7 @@ gst_rmdemux_parse_packet (GstRMDemux * rmdemux, const void *data,
if ((rmdemux->offset + packet_size) <= stream->seek_offset) {
GST_DEBUG_OBJECT (rmdemux,
"Stream %d is skipping: seek_offset=%d, offset=%d, packet_size",
"Stream %d is skipping: seek_offset=%d, offset=%d, packet_size=%u",
stream->id, stream->seek_offset, rmdemux->offset, packet_size);
cret = GST_FLOW_OK;
goto beach;