schroedinger: fix warnings on macosx snow leopard

This commit is contained in:
Josep Torra 2009-10-11 14:02:26 +02:00
parent 1826b6a93c
commit 14a83f3b3d
3 changed files with 7 additions and 4 deletions

View file

@ -473,7 +473,8 @@ gst_schro_dec_parse_data (GstBaseVideoDecoder * base_video_decoder,
if (GST_CLOCK_TIME_IS_VALID (base_video_decoder->last_sink_timestamp)) { if (GST_CLOCK_TIME_IS_VALID (base_video_decoder->last_sink_timestamp)) {
base_video_decoder->current_frame->presentation_timestamp = base_video_decoder->current_frame->presentation_timestamp =
base_video_decoder->last_sink_timestamp; base_video_decoder->last_sink_timestamp;
GST_DEBUG ("got timestamp %lld", base_video_decoder->last_sink_timestamp); GST_DEBUG ("got timestamp %" G_GINT64_FORMAT,
base_video_decoder->last_sink_timestamp);
} else if (base_video_decoder->last_sink_offset_end != -1) { } else if (base_video_decoder->last_sink_offset_end != -1) {
GstVideoState *state; GstVideoState *state;

View file

@ -468,7 +468,7 @@ gst_schro_enc_handle_frame (GstBaseVideoEncoder * base_video_encoder,
schro_enc->granule_offset = schro_enc->granule_offset =
gst_util_uint64_scale (frame->presentation_timestamp, gst_util_uint64_scale (frame->presentation_timestamp,
2 * state->fps_n, GST_SECOND * state->fps_d); 2 * state->fps_n, GST_SECOND * state->fps_d);
GST_DEBUG ("granule offset %lld", schro_enc->granule_offset); GST_DEBUG ("granule offset %" G_GINT64_FORMAT, schro_enc->granule_offset);
} }
schro_frame = gst_schro_buffer_wrap (gst_buffer_ref (frame->sink_buffer), schro_frame = gst_schro_buffer_wrap (gst_buffer_ref (frame->sink_buffer),
@ -636,7 +636,8 @@ gst_schro_enc_shape_output_ogg (GstBaseVideoEncoder * base_video_encoder,
granulepos_hi = (((uint64_t) pt - delay) << 9) | ((dist >> 8)); granulepos_hi = (((uint64_t) pt - delay) << 9) | ((dist >> 8));
granulepos_low = (delay << 9) | (dist & 0xff); granulepos_low = (delay << 9) | (dist & 0xff);
GST_DEBUG ("granulepos %lld:%lld", granulepos_hi, granulepos_low); GST_DEBUG ("granulepos %" G_GINT64_FORMAT ":%" G_GINT64_FORMAT, granulepos_hi,
granulepos_low);
if (frame->is_eos) { if (frame->is_eos) {
GST_BUFFER_OFFSET_END (buf) = schro_enc->last_granulepos; GST_BUFFER_OFFSET_END (buf) = schro_enc->last_granulepos;

View file

@ -448,7 +448,8 @@ gst_schro_parse_shape_output_ogg (GstBaseVideoParse * base_video_parse,
granulepos_hi = (((guint64) pt - delay) << 9) | ((dist >> 8)); granulepos_hi = (((guint64) pt - delay) << 9) | ((dist >> 8));
granulepos_low = (delay << 9) | (dist & 0xff); granulepos_low = (delay << 9) | (dist & 0xff);
GST_DEBUG ("granulepos %lld:%lld", granulepos_hi, granulepos_low); GST_DEBUG ("granulepos %" G_GINT64_FORMAT ":%" G_GINT64_FORMAT, granulepos_hi,
granulepos_low);
if (frame->is_eos) { if (frame->is_eos) {
GST_BUFFER_OFFSET_END (buf) = schro_parse->last_granulepos; GST_BUFFER_OFFSET_END (buf) = schro_parse->last_granulepos;