Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
George Kiagiadakis
gst-plugins-good
Commits
1e5dd9e3
Commit
1e5dd9e3
authored
Nov 21, 2011
by
Matej Knopp
Committed by
Tim-Philipp Müller
Nov 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix printf format compiler warnings on OS X / 64bit
https://bugzilla.gnome.org/show_bug.cgi?id=662615
parent
f8e988a9
Changes
59
Hide whitespace changes
Inline
Side-by-side
Showing
59 changed files
with
163 additions
and
123 deletions
+163
-123
configure.ac
configure.ac
+2
-1
gst/alpha/gstalpha.c
gst/alpha/gstalpha.c
+3
-2
gst/audiofx/audiofxbasefirfilter.c
gst/audiofx/audiofxbasefirfilter.c
+4
-2
gst/audioparsers/gstdcaparse.c
gst/audioparsers/gstdcaparse.c
+3
-2
gst/audioparsers/gstflacparse.c
gst/audioparsers/gstflacparse.c
+3
-3
gst/auparse/gstauparse.c
gst/auparse/gstauparse.c
+2
-1
gst/avi/gstavidemux.c
gst/avi/gstavidemux.c
+22
-16
gst/avi/gstavisubtitle.c
gst/avi/gstavisubtitle.c
+3
-2
gst/debugutils/breakmydata.c
gst/debugutils/breakmydata.c
+4
-3
gst/debugutils/gstnavigationtest.c
gst/debugutils/gstnavigationtest.c
+3
-2
gst/flv/gstflvdemux.c
gst/flv/gstflvdemux.c
+9
-6
gst/goom/gstgoom.c
gst/goom/gstgoom.c
+1
-1
gst/isomp4/gstqtmux.c
gst/isomp4/gstqtmux.c
+5
-4
gst/isomp4/qtdemux.c
gst/isomp4/qtdemux.c
+11
-8
gst/rtp/gstrtpac3depay.c
gst/rtp/gstrtpac3depay.c
+1
-1
gst/rtp/gstrtpac3pay.c
gst/rtp/gstrtpac3pay.c
+2
-1
gst/rtp/gstrtpamrdepay.c
gst/rtp/gstrtpamrdepay.c
+1
-1
gst/rtp/gstrtpamrpay.c
gst/rtp/gstrtpamrpay.c
+1
-1
gst/rtp/gstrtpbvdepay.c
gst/rtp/gstrtpbvdepay.c
+1
-1
gst/rtp/gstrtpceltdepay.c
gst/rtp/gstrtpceltdepay.c
+3
-3
gst/rtp/gstrtpceltpay.c
gst/rtp/gstrtpceltpay.c
+1
-1
gst/rtp/gstrtpdvpay.c
gst/rtp/gstrtpdvpay.c
+3
-2
gst/rtp/gstrtpg723depay.c
gst/rtp/gstrtpg723depay.c
+1
-1
gst/rtp/gstrtpg723pay.c
gst/rtp/gstrtpg723pay.c
+3
-2
gst/rtp/gstrtpg726depay.c
gst/rtp/gstrtpg726depay.c
+1
-1
gst/rtp/gstrtpg726pay.c
gst/rtp/gstrtpg726pay.c
+1
-1
gst/rtp/gstrtpg729depay.c
gst/rtp/gstrtpg729depay.c
+1
-1
gst/rtp/gstrtpg729pay.c
gst/rtp/gstrtpg729pay.c
+1
-1
gst/rtp/gstrtpgsmdepay.c
gst/rtp/gstrtpgsmdepay.c
+1
-1
gst/rtp/gstrtpgsmpay.c
gst/rtp/gstrtpgsmpay.c
+1
-1
gst/rtp/gstrtph264pay.c
gst/rtp/gstrtph264pay.c
+6
-5
gst/rtp/gstrtpilbcdepay.c
gst/rtp/gstrtpilbcdepay.c
+1
-1
gst/rtp/gstrtpj2kdepay.c
gst/rtp/gstrtpj2kdepay.c
+3
-2
gst/rtp/gstrtpj2kpay.c
gst/rtp/gstrtpj2kpay.c
+2
-1
gst/rtp/gstrtpjpegdepay.c
gst/rtp/gstrtpjpegdepay.c
+1
-2
gst/rtp/gstrtpmp1sdepay.c
gst/rtp/gstrtpmp1sdepay.c
+2
-2
gst/rtp/gstrtpmp2tdepay.c
gst/rtp/gstrtpmp2tdepay.c
+2
-2
gst/rtp/gstrtpmp2tpay.c
gst/rtp/gstrtpmp2tpay.c
+1
-1
gst/rtp/gstrtpmp4apay.c
gst/rtp/gstrtpmp4apay.c
+5
-3
gst/rtp/gstrtpmp4gdepay.c
gst/rtp/gstrtpmp4gdepay.c
+4
-3
gst/rtp/gstrtpmp4vdepay.c
gst/rtp/gstrtpmp4vdepay.c
+2
-2
gst/rtp/gstrtpmpadepay.c
gst/rtp/gstrtpmpadepay.c
+1
-1
gst/rtp/gstrtpmpvdepay.c
gst/rtp/gstrtpmpvdepay.c
+1
-1
gst/rtp/gstrtppcmadepay.c
gst/rtp/gstrtppcmadepay.c
+1
-1
gst/rtp/gstrtppcmudepay.c
gst/rtp/gstrtppcmudepay.c
+1
-1
gst/rtp/gstrtpspeexdepay.c
gst/rtp/gstrtpspeexdepay.c
+1
-1
gst/rtp/gstrtptheoradepay.c
gst/rtp/gstrtptheoradepay.c
+2
-1
gst/rtp/gstrtptheorapay.c
gst/rtp/gstrtptheorapay.c
+1
-1
gst/rtp/gstrtpvorbisdepay.c
gst/rtp/gstrtpvorbisdepay.c
+2
-1
gst/rtp/gstrtpvorbispay.c
gst/rtp/gstrtpvorbispay.c
+2
-1
gst/rtp/gstrtpvrawpay.c
gst/rtp/gstrtpvrawpay.c
+2
-2
gst/rtpmanager/gstrtpsession.c
gst/rtpmanager/gstrtpsession.c
+2
-2
gst/spectrum/gstspectrum.c
gst/spectrum/gstspectrum.c
+4
-3
gst/udp/gstdynudpsink.c
gst/udp/gstdynudpsink.c
+4
-3
gst/udp/gstmultiudpsink.c
gst/udp/gstmultiudpsink.c
+1
-1
gst/videofilter/gstvideoflip.c
gst/videofilter/gstvideoflip.c
+3
-2
gst/wavenc/gstwavenc.c
gst/wavenc/gstwavenc.c
+2
-1
gst/wavparse/gstwavparse.c
gst/wavparse/gstwavparse.c
+4
-3
sys/ximage/gstximagesrc.c
sys/ximage/gstximagesrc.c
+2
-0
No files found.
configure.ac
View file @
1e5dd9e3
...
...
@@ -318,7 +318,8 @@ GST_PLUGINS_NONPORTED="deinterlace flx goom2k1 \
videobox videomixer \
cairo cairo_gobject dv1394 gdk_pixbuf libdv libpng \
oss oss4 shout2 \
taglib wavpack "
taglib wavpack \
osx_video osx_audio "
AC_SUBST(GST_PLUGINS_NONPORTED)
dnl these are all the gst plug-ins, compilable without additional libs
...
...
gst/alpha/gstalpha.c
View file @
1e5dd9e3
...
...
@@ -445,8 +445,9 @@ gst_alpha_get_unit_size (GstBaseTransform * btrans,
*
size
=
info
.
size
;
GST_DEBUG_OBJECT
(
btrans
,
"unit size = %d for format %s w %d height %d"
,
*
size
,
GST_VIDEO_INFO_NAME
(
&
info
),
GST_VIDEO_INFO_WIDTH
(
&
info
),
GST_DEBUG_OBJECT
(
btrans
,
"unit size = %"
G_GSIZE_FORMAT
" for format %s w %d height %d"
,
*
size
,
GST_VIDEO_INFO_NAME
(
&
info
),
GST_VIDEO_INFO_WIDTH
(
&
info
),
GST_VIDEO_INFO_HEIGHT
(
&
info
));
return
TRUE
;
...
...
gst/audiofx/audiofxbasefirfilter.c
View file @
1e5dd9e3
...
...
@@ -717,7 +717,8 @@ gst_audio_fx_base_fir_filter_push_residue (GstAudioFXBaseFIRFilter * self)
GST_BUFFER_OFFSET_END
(
outbuf
)
=
GST_BUFFER_OFFSET
(
outbuf
)
+
outsamples
;
}
GST_DEBUG_OBJECT
(
self
,
"Pushing residue buffer of size %d with timestamp: %"
GST_DEBUG_OBJECT
(
self
,
"Pushing residue buffer of size %"
G_GSIZE_FORMAT
" with timestamp: %"
GST_TIME_FORMAT
", duration: %"
GST_TIME_FORMAT
", offset: %"
G_GUINT64_FORMAT
", offset_end: %"
G_GUINT64_FORMAT
", nsamples_out: %d"
,
gst_buffer_get_size
(
outbuf
),
...
...
@@ -902,7 +903,8 @@ gst_audio_fx_base_fir_filter_transform (GstBaseTransform * base,
GST_BUFFER_OFFSET_END
(
outbuf
)
=
GST_BUFFER_OFFSET_NONE
;
}
GST_DEBUG_OBJECT
(
self
,
"Pushing buffer of size %d with timestamp: %"
GST_DEBUG_OBJECT
(
self
,
"Pushing buffer of size %"
G_GSIZE_FORMAT
" with timestamp: %"
GST_TIME_FORMAT
", duration: %"
GST_TIME_FORMAT
", offset: %"
G_GUINT64_FORMAT
", offset_end: %"
G_GUINT64_FORMAT
", nsamples_out: %d"
,
gst_buffer_get_size
(
outbuf
),
...
...
gst/audioparsers/gstdcaparse.c
View file @
1e5dd9e3
...
...
@@ -391,8 +391,9 @@ gst_dca_parse_check_valid_frame (GstBaseParse * parse,
}
else
{
/* FIXME: baseparse always seems to hand us buffers of min_frame_size
* bytes, which is unhelpful here */
GST_LOG_OBJECT
(
dcaparse
,
"next sync out of reach (%u < %u)"
,
bufsize
,
size
+
16
);
GST_LOG_OBJECT
(
dcaparse
,
"next sync out of reach (%"
G_GSIZE_FORMAT
" < %u)"
,
bufsize
,
size
+
16
);
/* *skipsize = 0; */
/* return FALSE; */
}
...
...
gst/audioparsers/gstflacparse.c
View file @
1e5dd9e3
...
...
@@ -770,7 +770,7 @@ gst_flac_parse_check_valid_frame (GstBaseParse * parse,
goto
cleanup
;
}
else
{
GST_ERROR_OBJECT
(
flacparse
,
"Giving up on invalid frame (%
d
bytes)"
,
bufsize
);
"Giving up on invalid frame (%
"
G_GSIZE_FORMAT
"
bytes)"
,
bufsize
);
result
=
FALSE
;
goto
cleanup
;
}
...
...
@@ -815,8 +815,8 @@ gst_flac_parse_handle_streaminfo (GstFlacParse * flacparse, GstBuffer * buffer)
gst_bit_reader_init
(
&
reader
,
data
,
size
);
if
(
size
!=
4
+
34
)
{
GST_ERROR_OBJECT
(
flacparse
,
"Invalid metablock size for STREAMINFO: %u"
,
size
);
GST_ERROR_OBJECT
(
flacparse
,
"Invalid metablock size for STREAMINFO: %"
G_GSIZE_FORMAT
""
,
size
);
goto
failure
;
}
...
...
gst/auparse/gstauparse.c
View file @
1e5dd9e3
...
...
@@ -406,7 +406,8 @@ gst_au_parse_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
auparse
=
GST_AU_PARSE
(
parent
);
GST_LOG_OBJECT
(
auparse
,
"got buffer of size %u"
,
gst_buffer_get_size
(
buf
));
GST_LOG_OBJECT
(
auparse
,
"got buffer of size %"
G_GSIZE_FORMAT
,
gst_buffer_get_size
(
buf
));
gst_adapter_push
(
auparse
->
adapter
,
buf
);
buf
=
NULL
;
...
...
gst/avi/gstavidemux.c
View file @
1e5dd9e3
...
...
@@ -1161,7 +1161,7 @@ no_buffer:
avih_too_small:
{
GST_ELEMENT_ERROR
(
avi
,
STREAM
,
DEMUX
,
(
NULL
),
(
"Too small avih (%
d
available, %d needed)"
,
(
"Too small avih (%
"
G_GSIZE_FORMAT
"
available, %d needed)"
,
size
,
(
int
)
sizeof
(
gst_riff_avih
)));
gst_buffer_unref
(
buf
);
return
FALSE
;
...
...
@@ -1242,7 +1242,8 @@ gst_avi_demux_parse_superindex (GstAviDemux * avi,
too_small:
{
GST_ERROR_OBJECT
(
avi
,
"Not enough data to parse superindex (%d available, 24 needed)"
,
size
);
"Not enough data to parse superindex (%"
G_GSIZE_FORMAT
" available, 24 needed)"
,
size
);
if
(
buf
)
{
gst_buffer_unmap
(
buf
,
data
,
size
);
gst_buffer_unref
(
buf
);
...
...
@@ -1528,7 +1529,8 @@ done:
too_small:
{
GST_ERROR_OBJECT
(
avi
,
"Not enough data to parse subindex (%d available, 24 needed)"
,
size
);
"Not enough data to parse subindex (%"
G_GSIZE_FORMAT
" available, 24 needed)"
,
size
);
goto
done
;
/* continue */
}
not_implemented:
...
...
@@ -1802,7 +1804,7 @@ gst_avi_demux_riff_parse_vprp (GstElement * element,
too_small:
{
GST_ERROR_OBJECT
(
element
,
"Too small vprp (%
d
available, at least %d needed)"
,
"Too small vprp (%
"
G_GSIZE_FORMAT
"
available, at least %d needed)"
,
size
,
(
int
)
G_STRUCT_OFFSET
(
gst_riff_vprp
,
field_info
));
gst_buffer_unref
(
buf
);
return
FALSE
;
...
...
@@ -1853,7 +1855,8 @@ gst_avi_demux_roundup_list (GstAviDemux * avi, GstBuffer ** buf)
GstBuffer
*
obuf
;
guint8
*
data
;
GST_DEBUG_OBJECT
(
avi
,
"rounding up dubious list size %d"
,
size
);
GST_DEBUG_OBJECT
(
avi
,
"rounding up dubious list size %"
G_GSIZE_FORMAT
,
size
);
obuf
=
gst_buffer_new_and_alloc
(
size
+
1
);
data
=
gst_buffer_map
(
obuf
,
NULL
,
NULL
,
GST_MAP_WRITE
);
...
...
@@ -2336,7 +2339,7 @@ gst_avi_demux_parse_odml (GstAviDemux * avi, GstBuffer * buf)
/* check size */
if
(
size
<
sizeof
(
gst_riff_dmlh
))
{
GST_ERROR_OBJECT
(
avi
,
"DMLH entry is too small (%
d
bytes, %d needed)"
,
"DMLH entry is too small (%
"
G_GSIZE_FORMAT
"
bytes, %d needed)"
,
size
,
(
int
)
sizeof
(
gst_riff_dmlh
));
gst_buffer_unmap
(
sub
,
data
,
size
);
goto
next
;
...
...
@@ -2691,7 +2694,7 @@ gst_avi_demux_stream_index (GstAviDemux * avi)
avi
->
sinkpad
,
&
offset
,
&
tag
,
&
buf
)
!=
GST_FLOW_OK
)
return
;
GST_DEBUG
(
"will parse index chunk size %
u
for tag %"
GST_DEBUG
(
"will parse index chunk size %
"
G_GSIZE_FORMAT
"
for tag %"
GST_FOURCC_FORMAT
,
gst_buffer_get_size
(
buf
),
GST_FOURCC_ARGS
(
tag
));
gst_avi_demux_parse_index
(
avi
,
buf
);
...
...
@@ -2784,7 +2787,7 @@ gst_avi_demux_stream_index_push (GstAviDemux * avi)
/* advance offset */
offset
+=
8
+
GST_ROUND_UP_2
(
size
);
GST_DEBUG
(
"will parse index chunk size %
u
for tag %"
GST_DEBUG
(
"will parse index chunk size %
"
G_GSIZE_FORMAT
"
for tag %"
GST_FOURCC_FORMAT
,
gst_buffer_get_size
(
buf
),
GST_FOURCC_ARGS
(
tag
));
avi
->
offset
=
avi
->
first_movi_offset
;
...
...
@@ -2865,7 +2868,8 @@ pull_failed:
}
wrong_size:
{
GST_DEBUG_OBJECT
(
avi
,
"got %d bytes which is <> 8 bytes"
,
bufsize
);
GST_DEBUG_OBJECT
(
avi
,
"got %"
G_GSIZE_FORMAT
" bytes which is <> 8 bytes"
,
bufsize
);
res
=
GST_FLOW_ERROR
;
goto
done
;
}
...
...
@@ -3705,7 +3709,8 @@ gst_avi_demux_stream_header_pull (GstAviDemux * avi)
GST_DEBUG_OBJECT
(
avi
,
"pull_range failure while looking for tags"
);
goto
pull_range_failed
;
}
else
if
(
gst_buffer_get_size
(
buf
)
<
12
)
{
GST_DEBUG_OBJECT
(
avi
,
"got %d bytes which is less than 12 bytes"
,
GST_DEBUG_OBJECT
(
avi
,
"got %"
G_GSIZE_FORMAT
" bytes which is less than 12 bytes"
,
gst_buffer_get_size
(
buf
));
gst_buffer_unref
(
buf
);
return
GST_FLOW_ERROR
;
...
...
@@ -3737,7 +3742,7 @@ gst_avi_demux_stream_header_pull (GstAviDemux * avi)
GST_DEBUG_OBJECT
(
avi
,
"couldn't read INFO chunk"
);
goto
pull_range_failed
;
}
GST_DEBUG
(
"got size %
u
"
,
gst_buffer_get_size
(
buf
));
GST_DEBUG
(
"got size %"
G_GSIZE_FORMAT
,
gst_buffer_get_size
(
buf
));
if
(
size
<
4
)
{
GST_DEBUG
(
"skipping INFO LIST prefix"
);
avi
->
offset
+=
(
4
-
GST_ROUND_UP_2
(
size
));
...
...
@@ -4201,7 +4206,7 @@ avi_demux_handle_seek_push (GstAviDemux * avi, GstPad * pad, GstEvent * event)
gst_segment_do_seek
(
&
seeksegment
,
rate
,
format
,
flags
,
cur_type
,
cur
,
stop_type
,
stop
,
&
update
);
keyframe
=
!
!
(
flags
&
GST_SEEK_FLAG_KEY_UNIT
);
keyframe
=
!!
(
flags
&
GST_SEEK_FLAG_KEY_UNIT
);
cur
=
seeksegment
.
position
;
GST_DEBUG_OBJECT
(
avi
,
...
...
@@ -4719,7 +4724,7 @@ gst_avi_demux_loop_data (GstAviDemux * avi)
/* update current position in the segment */
avi
->
segment
.
position
=
timestamp
;
GST_DEBUG_OBJECT
(
avi
,
"Pushing buffer of size %
u
, ts %"
GST_DEBUG_OBJECT
(
avi
,
"Pushing buffer of size %
"
G_GSIZE_FORMAT
"
, ts %"
GST_TIME_FORMAT
", dur %"
GST_TIME_FORMAT
", off %"
G_GUINT64_FORMAT
", off_end %"
G_GUINT64_FORMAT
,
gst_buffer_get_size
(
buf
),
GST_TIME_ARGS
(
timestamp
),
...
...
@@ -4776,8 +4781,8 @@ pull_failed:
short_buffer:
{
GST_WARNING_OBJECT
(
avi
,
"Short read at offset %"
G_GUINT64_FORMAT
", only got %
d
/%"
G_GUINT64_FORMAT
" bytes (truncated file?)"
,
offset
,
gst_buffer_get_size
(
buf
),
size
);
", only got %
"
G_GSIZE_FORMAT
"
/%"
G_GUINT64_FORMAT
" bytes (truncated file?)"
,
offset
,
gst_buffer_get_size
(
buf
),
size
);
gst_buffer_unref
(
buf
);
ret
=
GST_FLOW_UNEXPECTED
;
goto
beach
;
...
...
@@ -5166,7 +5171,8 @@ gst_avi_demux_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
avi
->
stream
[
i
].
discont
=
TRUE
;
}
GST_DEBUG
(
"Store %d bytes in adapter"
,
gst_buffer_get_size
(
buf
));
GST_DEBUG
(
"Store %"
G_GSIZE_FORMAT
" bytes in adapter"
,
gst_buffer_get_size
(
buf
));
gst_adapter_push
(
avi
->
adapter
,
buf
);
switch
(
avi
->
state
)
{
...
...
gst/avi/gstavisubtitle.c
View file @
1e5dd9e3
...
...
@@ -243,7 +243,8 @@ wrong_magic_word:
wrong_name_length:
{
GST_ELEMENT_ERROR
(
sub
,
STREAM
,
DECODE
,
(
NULL
),
(
"name doesn't fit in buffer (%d < %d)"
,
size
,
17
+
name_length
));
(
"name doesn't fit in buffer (%"
G_GSIZE_FORMAT
" < %d)"
,
size
,
17
+
name_length
));
gst_buffer_unmap
(
buf
,
data
,
size
);
return
GST_FLOW_ERROR
;
}
...
...
@@ -258,7 +259,7 @@ wrong_fixed_word_2:
wrong_total_length:
{
GST_ELEMENT_ERROR
(
sub
,
STREAM
,
DECODE
,
(
NULL
),
(
"buffer size is wrong: need %d bytes, have %
d
bytes"
,
(
"buffer size is wrong: need %d bytes, have %
"
G_GSIZE_FORMAT
"
bytes"
,
17
+
name_length
+
file_length
,
size
));
gst_buffer_unmap
(
buf
,
data
,
size
);
return
GST_FLOW_ERROR
;
...
...
gst/debugutils/breakmydata.c
View file @
1e5dd9e3
...
...
@@ -237,8 +237,8 @@ gst_break_my_data_transform_ip (GstBaseTransform * trans, GstBuffer * buf)
data
=
gst_buffer_map
(
buf
,
&
size
,
NULL
,
GST_MAP_READWRITE
);
GST_LOG_OBJECT
(
bmd
,
"got buffer %p (size %
u
, timestamp %"
G_GUINT64_FORMAT
", offset %"
G_GUINT64_FORMAT
""
,
buf
,
size
,
GST_BUFFER_TIMESTAMP
(
buf
),
"got buffer %p (size %
"
G_GSIZE_FORMAT
"
, timestamp %"
G_GUINT64_FORMAT
", offset %"
G_GUINT64_FORMAT
""
,
buf
,
size
,
GST_BUFFER_TIMESTAMP
(
buf
),
GST_BUFFER_OFFSET
(
buf
));
for
(;
i
<
size
;
i
++
)
{
...
...
@@ -250,7 +250,8 @@ gst_break_my_data_transform_ip (GstBaseTransform * trans, GstBuffer * buf)
}
else
{
new
=
bmd
->
set
;
}
GST_INFO_OBJECT
(
bmd
,
"changing byte %u from 0x%02X to 0x%02X"
,
i
,
GST_INFO_OBJECT
(
bmd
,
"changing byte %"
G_GSIZE_FORMAT
" from 0x%02X to 0x%02X"
,
i
,
(
guint
)
GST_READ_UINT8
(
data
+
i
),
(
guint
)
((
guint8
)
new
));
data
[
i
]
=
new
;
}
...
...
gst/debugutils/gstnavigationtest.c
View file @
1e5dd9e3
...
...
@@ -132,8 +132,9 @@ gst_navigationtest_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
gst_structure_get_int
(
structure
,
"height"
,
&
height
))
{
*
size
=
GST_VIDEO_I420_SIZE
(
width
,
height
);
ret
=
TRUE
;
GST_DEBUG_OBJECT
(
navtest
,
"our frame size is %d bytes (%dx%d)"
,
*
size
,
width
,
height
);
GST_DEBUG_OBJECT
(
navtest
,
"our frame size is %"
G_GSIZE_FORMAT
" bytes (%dx%d)"
,
*
size
,
width
,
height
);
}
return
ret
;
...
...
gst/flv/gstflvdemux.c
View file @
1e5dd9e3
...
...
@@ -821,7 +821,7 @@ gst_flv_demux_parse_tag_audio (GstFlvDemux * demux, GstBuffer * buffer)
/* Error out on tags with too small headers */
if
(
gst_buffer_get_size
(
buffer
)
<
11
)
{
GST_ERROR_OBJECT
(
demux
,
"Too small tag size (%
d
)"
,
GST_ERROR_OBJECT
(
demux
,
"Too small tag size (%
"
G_GSIZE_FORMAT
"
)"
,
gst_buffer_get_size
(
buffer
));
return
GST_FLOW_ERROR
;
}
...
...
@@ -1038,7 +1038,8 @@ gst_flv_demux_parse_tag_audio (GstFlvDemux * demux, GstBuffer * buffer)
demux
->
audio_need_segment
=
FALSE
;
}
GST_LOG_OBJECT
(
demux
,
"pushing %d bytes buffer at pts %"
GST_TIME_FORMAT
GST_LOG_OBJECT
(
demux
,
"pushing %"
G_GSIZE_FORMAT
" bytes buffer at pts %"
GST_TIME_FORMAT
" with duration %"
GST_TIME_FORMAT
", offset %"
G_GUINT64_FORMAT
,
gst_buffer_get_size
(
outbuf
),
GST_TIME_ARGS
(
GST_BUFFER_TIMESTAMP
(
outbuf
)),
...
...
@@ -1415,7 +1416,8 @@ gst_flv_demux_parse_tag_video (GstFlvDemux * demux, GstBuffer * buffer)
demux
->
video_need_segment
=
FALSE
;
}
GST_LOG_OBJECT
(
demux
,
"pushing %d bytes buffer at pts %"
GST_TIME_FORMAT
GST_LOG_OBJECT
(
demux
,
"pushing %"
G_GSIZE_FORMAT
" bytes buffer at pts %"
GST_TIME_FORMAT
" with duration %"
GST_TIME_FORMAT
", offset %"
G_GUINT64_FORMAT
", keyframe (%d)"
,
gst_buffer_get_size
(
outbuf
),
GST_TIME_ARGS
(
GST_BUFFER_TIMESTAMP
(
outbuf
)),
...
...
@@ -1776,7 +1778,8 @@ gst_flv_demux_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer)
demux
=
GST_FLV_DEMUX
(
parent
);
GST_LOG_OBJECT
(
demux
,
"received buffer of %d bytes at offset %"
GST_LOG_OBJECT
(
demux
,
"received buffer of %"
G_GSIZE_FORMAT
" bytes at offset %"
G_GUINT64_FORMAT
,
gst_buffer_get_size
(
buffer
),
GST_BUFFER_OFFSET
(
buffer
));
...
...
@@ -2024,8 +2027,8 @@ gst_flv_demux_pull_range (GstFlvDemux * demux, GstPad * pad, guint64 offset,
if
(
G_UNLIKELY
(
*
buffer
&&
gst_buffer_get_size
(
*
buffer
)
!=
size
))
{
GST_WARNING_OBJECT
(
demux
,
"partial pull got %
d
when expecting %d from offset %"
G_GUINT64_FORMAT
,
gst_buffer_get_size
(
*
buffer
),
size
,
offset
);
"partial pull got %
"
G_GSIZE_FORMAT
"
when expecting %d from offset %"
G_GUINT64_FORMAT
,
gst_buffer_get_size
(
*
buffer
),
size
,
offset
);
gst_buffer_unref
(
*
buffer
);
ret
=
GST_FLOW_UNEXPECTED
;
*
buffer
=
NULL
;
...
...
gst/goom/gstgoom.c
View file @
1e5dd9e3
...
...
@@ -504,7 +504,7 @@ gst_goom_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer)
}
GST_DEBUG_OBJECT
(
goom
,
"Input buffer has %
d
samples, time=%"
G_GUINT64_FORMAT
,
"Input buffer has %
"
G_GSIZE_FORMAT
"
samples, time=%"
G_GUINT64_FORMAT
,
gst_buffer_get_size
(
buffer
)
/
goom
->
bps
,
GST_BUFFER_TIMESTAMP
(
buffer
));
/* Collect samples until we have enough for an output frame */
...
...
gst/isomp4/gstqtmux.c
View file @
1e5dd9e3
...
...
@@ -682,7 +682,7 @@ gst_qt_mux_add_mp4_cover (GstQTMux * qtmux, const GstTagList * list,
data
=
gst_buffer_map
(
buf
,
&
size
,
NULL
,
GST_MAP_READ
);
GST_DEBUG_OBJECT
(
qtmux
,
"Adding tag %"
GST_FOURCC_FORMAT
" -> image size %
d
"
,
GST_FOURCC_ARGS
(
fourcc
),
size
);
" -> image size %
"
G_GSIZE_FORMAT
"
"
,
GST_FOURCC_ARGS
(
fourcc
),
size
);
atom_moov_add_tag
(
qtmux
->
moov
,
fourcc
,
flags
,
data
,
size
);
gst_buffer_unmap
(
buf
,
data
,
size
);
done:
...
...
@@ -1121,7 +1121,8 @@ gst_qt_mux_add_metadata_tags (GstQTMux * qtmux, const GstTagList * list)
gsize
size
;
data
=
gst_buffer_map
(
buf
,
&
size
,
NULL
,
GST_MAP_READ
);
GST_DEBUG_OBJECT
(
qtmux
,
"Found private tag %d/%d; size %d, caps %"
GST_DEBUG_OBJECT
(
qtmux
,
"Found private tag %d/%d; size %"
G_GSIZE_FORMAT
", caps %"
GST_PTR_FORMAT
,
i
,
num_tags
,
size
,
caps
);
s
=
gst_caps_get_structure
(
caps
,
0
);
if
(
s
&&
(
style
=
gst_structure_get_string
(
s
,
"style"
)))
{
...
...
@@ -1198,7 +1199,7 @@ gst_qt_mux_send_buffer (GstQTMux * qtmux, GstBuffer * buf, guint64 * offset,
g_return_val_if_fail
(
buf
!=
NULL
,
GST_FLOW_ERROR
);
size
=
gst_buffer_get_size
(
buf
);
GST_LOG_OBJECT
(
qtmux
,
"sending buffer size %
d
"
,
size
);
GST_LOG_OBJECT
(
qtmux
,
"sending buffer size %"
G_GSIZE_FORMAT
,
size
);
if
(
mind_fast
&&
qtmux
->
fast_start_file
)
{
gint
ret
;
...
...
@@ -1997,7 +1998,7 @@ flush:
pad
->
traf
=
NULL
;
atom_moof_copy_data
(
moof
,
&
data
,
&
size
,
&
offset
);
buffer
=
_gst_buffer_new_take_data
(
data
,
offset
);
GST_LOG_OBJECT
(
qtmux
,
"writing moof size %
d
"
,
GST_LOG_OBJECT
(
qtmux
,
"writing moof size %"
G_GSIZE_FORMAT
,
gst_buffer_get_size
(
buffer
));
ret
=
gst_qt_mux_send_buffer
(
qtmux
,
buffer
,
&
qtmux
->
header_size
,
FALSE
);
...
...
gst/isomp4/qtdemux.c
View file @
1e5dd9e3
...
...
@@ -599,8 +599,8 @@ gst_qtdemux_pull_atom (GstQTDemux * qtdemux, guint64 offset, guint64 size,
bsize
=
gst_buffer_get_size
(
*
buf
);
/* Catch short reads - we don't want any partial atoms */
if
(
G_UNLIKELY
(
bsize
<
size
))
{
GST_WARNING_OBJECT
(
qtdemux
,
"short read: %u < %"
G_GUINT64_FORMAT
,
bsize
,
size
);
GST_WARNING_OBJECT
(
qtdemux
,
"short read: %"
G_GSIZE_FORMAT
" < %"
G_GUINT64_FORMAT
,
bsize
,
size
);
gst_buffer_unref
(
*
buf
);
*
buf
=
NULL
;
return
GST_FLOW_UNEXPECTED
;
...
...
@@ -2718,8 +2718,9 @@ gst_qtdemux_loop_state_header (GstQTDemux * qtdemux)
if
(
length
!=
size
)
{
GST_ELEMENT_ERROR
(
qtdemux
,
STREAM
,
DEMUX
,
(
_
(
"This file is incomplete and cannot be played."
)),
(
"We got less than expected (received %u, wanted %u, offset %"
G_GUINT64_FORMAT
")"
,
size
,
(
guint
)
length
,
cur_offset
));
(
"We got less than expected (received %"
G_GSIZE_FORMAT
", wanted %u, offset %"
G_GUINT64_FORMAT
")"
,
size
,
(
guint
)
length
,
cur_offset
));
gst_buffer_unmap
(
moov
,
data
,
size
);
gst_buffer_unref
(
moov
);
ret
=
GST_FLOW_ERROR
;
...
...
@@ -3537,7 +3538,8 @@ gst_qtdemux_process_buffer (GstQTDemux * qtdemux, QtDemuxStream * stream,
nsize
=
MIN
(
nsize
,
size
-
2
);
}
GST_LOG_OBJECT
(
qtdemux
,
"3GPP timed text subtitle: %d/%d"
,
nsize
,
size
);
GST_LOG_OBJECT
(
qtdemux
,
"3GPP timed text subtitle: %d/%"
G_GSIZE_FORMAT
""
,
nsize
,
size
);
/* takes care of UTF-8 validation or UTF-16 recognition,
* no other encoding expected */
...
...
@@ -4026,8 +4028,9 @@ gst_qtdemux_chain (GstPad * sinkpad, GstObject * parent, GstBuffer * inbuf)
if
(
demux
->
neededbytes
==
-
1
)
goto
eos
;
GST_DEBUG_OBJECT
(
demux
,
"pushing in inbuf %p, neededbytes:%u, available:%u"
,
inbuf
,
demux
->
neededbytes
,
gst_adapter_available
(
demux
->
adapter
));
GST_DEBUG_OBJECT
(
demux
,
"pushing in inbuf %p, neededbytes:%u, available:%"
G_GSIZE_FORMAT
,
inbuf
,
demux
->
neededbytes
,
gst_adapter_available
(
demux
->
adapter
));
while
(((
gst_adapter_available
(
demux
->
adapter
))
>=
demux
->
neededbytes
)
&&
(
ret
==
GST_FLOW_OK
))
{
...
...
@@ -6247,7 +6250,7 @@ qtdemux_parse_amr_bitrate (GstBuffer * buf, gboolean wb)
data
=
gst_buffer_map
(
buf
,
&
size
,
NULL
,
GST_MAP_READ
);
if
(
size
!=
0x11
)
{
GST_DEBUG
(
"Atom should have size 0x11, not %
u
"
,
size
);
GST_DEBUG
(
"Atom should have size 0x11, not %"
G_GSIZE_FORMAT
,
size
);
goto
bad_data
;
}
...
...
gst/rtp/gstrtpac3depay.c
View file @
1e5dd9e3
...
...
@@ -191,7 +191,7 @@ gst_rtp_ac3_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf)
gst_rtp_buffer_unmap
(
&
rtp
);
if
(
outbuf
)
GST_DEBUG_OBJECT
(
rtpac3depay
,
"pushing buffer of size %
d
"
,
GST_DEBUG_OBJECT
(
rtpac3depay
,
"pushing buffer of size %"
G_GSIZE_FORMAT
,
gst_buffer_get_size
(
outbuf
));
return
outbuf
;
...
...
gst/rtp/gstrtpac3pay.c
View file @
1e5dd9e3
...
...
@@ -367,7 +367,8 @@ gst_rtp_ac3_pay_handle_buffer (GstRTPBasePayload * basepayload,
break
;
NF
++
;
GST_DEBUG_OBJECT
(
rtpac3pay
,
"found frame %u of size %u"
,
NF
,
frame_size
);
GST_DEBUG_OBJECT
(
rtpac3pay
,
"found frame %"
G_GSIZE_FORMAT
" of size %u"
,
NF
,
frame_size
);
p
+=
frame_size
;
left
-=
frame_size
;
...
...
gst/rtp/gstrtpamrdepay.c
View file @
1e5dd9e3
...
...
@@ -411,7 +411,7 @@ gst_rtp_amr_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf)
GST_BUFFER_FLAG_SET
(
outbuf
,
GST_BUFFER_FLAG_DISCONT
);
}
GST_DEBUG_OBJECT
(
depayload
,
"pushing buffer of size %
d
"
,
GST_DEBUG_OBJECT
(
depayload
,
"pushing buffer of size %"
G_GSIZE_FORMAT
,
gst_buffer_get_size
(
outbuf
));
}
return
outbuf
;
...
...
gst/rtp/gstrtpamrpay.c
View file @
1e5dd9e3
...
...
@@ -252,7 +252,7 @@ gst_rtp_amr_pay_handle_buffer (GstRTPBasePayload * basepayload,
else
frame_size
=
wb_frame_size
;
GST_DEBUG_OBJECT
(
basepayload
,
"got %
d
bytes"
,
size
);
GST_DEBUG_OBJECT
(
basepayload
,
"got %
"
G_GSIZE_FORMAT
"
bytes"
,
size
);
/* FIXME, only
* octet aligned, no interleaving, single channel, no CRC,
...
...
gst/rtp/gstrtpbvdepay.c
View file @
1e5dd9e3
...
...
@@ -159,7 +159,7 @@ gst_rtp_bv_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf)
marker
=
gst_rtp_buffer_get_marker
(
&
rtp
);
GST_DEBUG
(
"process : got %
d
bytes, mark %d ts %u seqn %d"
,
GST_DEBUG
(
"process : got %
"
G_GSIZE_FORMAT
"
bytes, mark %d ts %u seqn %d"
,
gst_buffer_get_size
(
buf
),
marker
,
gst_rtp_buffer_get_timestamp
(
&
rtp
),
gst_rtp_buffer_get_seq
(
&
rtp
));
...
...
gst/rtp/gstrtpceltdepay.c
View file @
1e5dd9e3
...
...
@@ -214,9 +214,9 @@ gst_rtp_celt_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf)
gst_rtp_buffer_map
(
buf
,
GST_MAP_READ
,
&
rtp
);
GST_LOG_OBJECT
(
depayload
,
"got %d bytes, mark %d ts %u seqn %d"
,
gst_buffer_get_size
(
buf
)
,
gst_rtp_buffer_get_marker
(
&
rtp
),
GST_LOG_OBJECT
(
depayload
,
"got %"
G_GSIZE_FORMAT
" bytes, mark %d ts %u seqn %d"
,
gst_buffer_get_size
(
buf
),
gst_rtp_buffer_get_marker
(
&
rtp
),
gst_rtp_buffer_get_timestamp
(
&
rtp
),
gst_rtp_buffer_get_seq
(
&
rtp
));
GST_LOG_OBJECT
(
depayload
,
"got clock-rate=%d, frame_size=%d, "
...
...
gst/rtp/gstrtpceltpay.c
View file @
1e5dd9e3
...
...
@@ -396,7 +396,7 @@ gst_rtp_celt_pay_handle_buffer (GstRTPBasePayload * basepayload,
duration
=
GST_BUFFER_DURATION
(
buffer
);
GST_LOG_OBJECT
(
rtpceltpay
,
"got buffer of duration %"
GST_TIME_FORMAT
", size %
u
"
,
"got buffer of duration %"
GST_TIME_FORMAT
", size %"
G_GSIZE_FORMAT
,
GST_TIME_ARGS
(
duration
),
size
);
/* calculate the size of the size field and the payload */
...
...
gst/rtp/gstrtpdvpay.c
View file @
1e5dd9e3
...
...
@@ -305,8 +305,9 @@ gst_rtp_dv_pay_handle_buffer (GstRTPBasePayload * basepayload,
osize
=
size
;
GST_DEBUG_OBJECT
(
rtpdvpay
,
"DV RTP payloader got buffer of %u bytes, splitting in %u byte "
"payload fragments, at time %"
GST_TIME_FORMAT
,
size
,
max_payload_size
,
"DV RTP payloader got buffer of %"
G_GSIZE_FORMAT
" bytes, splitting in %u byte "
"payload fragments, at time %"
GST_TIME_FORMAT
,
size
,
max_payload_size
,
GST_TIME_ARGS
(
GST_BUFFER_TIMESTAMP
(
buffer
)));
if
(
!
rtpdvpay
->
negotiated
)
{
...
...
gst/rtp/gstrtpg723depay.c
View file @
1e5dd9e3
...
...
@@ -201,7 +201,7 @@ gst_rtp_g723_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf)
GST_BUFFER_FLAG_SET
(
outbuf
,
GST_BUFFER_FLAG_DISCONT
);
}
GST_LOG_OBJECT
(
depayload
,
"pushing buffer of size %
d
"
,
GST_LOG_OBJECT
(
depayload
,
"pushing buffer of size %"
G_GSIZE_FORMAT
,
gst_buffer_get_size
(
outbuf
));
return
outbuf
;
...
...
gst/rtp/gstrtpg723pay.c
View file @
1e5dd9e3
...
...
@@ -260,7 +260,7 @@ invalid_size:
{
GST_ELEMENT_WARNING
(
pay
,
STREAM
,
WRONG_TYPE
,
(
"Invalid input buffer size"
),
(
"Input size should be 4, 20 or 24, got %
u
"
,
size
));
(
"Input size should be 4, 20 or 24, got %"
G_GSIZE_FORMAT
,
size
));
gst_buffer_unmap
(
buf
,
data
,
size
);
gst_buffer_unref
(
buf
);
return
GST_FLOW_OK
;
...
...
@@ -269,7 +269,8 @@ wrong_size:
{
GST_ELEMENT_WARNING
(
pay
,
STREAM
,
WRONG_TYPE
,
(
"Wrong input buffer size"
),
(
"Expected input buffer size %u but got %u"
,
size_tab
[
HDR
],
size
));
(
"Expected input buffer size %u but got %"
G_GSIZE_FORMAT
,
size_tab
[
HDR
],
size
));
gst_buffer_unmap
(
buf
,
data
,
size
);
gst_buffer_unref
(
buf
);
return
GST_FLOW_OK
;
...
...
gst/rtp/gstrtpg726depay.c
View file @
1e5dd9e3
...
...
@@ -215,7 +215,7 @@ gst_rtp_g726_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf)
marker
=
gst_rtp_buffer_get_marker
(
&
rtp
);
GST_DEBUG
(
"process : got %
d
bytes, mark %d ts %u seqn %d"
,
GST_DEBUG
(
"process : got %
"
G_GSIZE_FORMAT
"
bytes, mark %d ts %u seqn %d"
,
gst_buffer_get_size
(
buf
),
marker
,
gst_rtp_buffer_get_timestamp
(
&
rtp
),
gst_rtp_buffer_get_seq
(
&
rtp
));
...
...
gst/rtp/gstrtpg726pay.c
View file @
1e5dd9e3
...
...
@@ -276,7 +276,7 @@ gst_rtp_g726_pay_handle_buffer (GstRTPBasePayload * payload, GstBuffer * buffer)
data
=
gst_buffer_map
(
buffer
,
&
len
,
NULL
,
GST_MAP_READWRITE
);
GST_LOG_OBJECT
(
pay
,
"packing %
u
bytes of data"
,
len
);
GST_LOG_OBJECT
(
pay
,
"packing %
"
G_GSIZE_FORMAT
"
bytes of data"
,
len
);
/* we need to reshuffle the bytes, output is of the form:
* A B C D .. with the number of bits depending on the bitrate. */
...
...
gst/rtp/gstrtpg729depay.c
View file @
1e5dd9e3
...
...
@@ -206,7 +206,7 @@ gst_rtp_g729_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf)
GST_BUFFER_FLAG_SET
(
outbuf
,
GST_BUFFER_FLAG_DISCONT
);
}
GST_LOG_OBJECT
(
depayload
,
"pushing buffer of size %
d
"
,
GST_LOG_OBJECT
(
depayload
,
"pushing buffer of size %"
G_GSIZE_FORMAT
,
gst_buffer_get_size
(
outbuf
));
return
outbuf
;
...
...
gst/rtp/gstrtpg729pay.c
View file @
1e5dd9e3
...
...
@@ -368,7 +368,7 @@ invalid_size:
(
"Invalid input buffer size"
),
(
"Invalid buffer size, should be a multiple of"
" G729_FRAME_SIZE(10) with an optional G729B_CN_FRAME_SIZE(2)"
" added to it, but it is %
u
"
,
size
));
" added to it, but it is %"
G_GSIZE_FORMAT
,
size
));
gst_buffer_unref
(
buf
);
return
GST_FLOW_ERROR
;
}
...
...
gst/rtp/gstrtpgsmdepay.c
View file @
1e5dd9e3
...
...
@@ -128,7 +128,7 @@ gst_rtp_gsm_depay_process (GstRTPBaseDepayload * _depayload, GstBuffer * buf)
marker
=
gst_rtp_buffer_get_marker
(
&
rtp
);
GST_DEBUG
(
"process : got %
d
bytes, mark %d ts %u seqn %d"
,
GST_DEBUG
(
"process : got %
"
G_GSIZE_FORMAT
"
bytes, mark %d ts %u seqn %d"
,
gst_buffer_get_size
(
buf
),
marker
,
gst_rtp_buffer_get_timestamp
(
&
rtp
),
gst_rtp_buffer_get_seq
(
&
rtp
));
...
...
gst/rtp/gstrtpgsmpay.c
View file @
1e5dd9e3
...
...
@@ -165,7 +165,7 @@ gst_rtp_gsm_pay_handle_buffer (GstRTPBasePayload * basepayload,
gst_buffer_unmap
(
buffer
,
data
,
size
);
gst_buffer_unref
(
buffer
);
GST_DEBUG
(
"gst_rtp_gsm_pay_chain: pushing buffer of size %
d
"
,
GST_DEBUG
(
"gst_rtp_gsm_pay_chain: pushing buffer of size %"
G_GSIZE_FORMAT
,