demux->next_dts = G_MAXUINT64;
stream->last_flow = result = gst_pad_push (stream->pad, buf);
- GST_DEBUG_OBJECT (demux, "pushed stream id 0x%02x type 0x%02x, pts time: %"
+ GST_LOG_OBJECT (demux, "pushed stream id 0x%02x type 0x%02x, pts time: %"
GST_TIME_FORMAT ", size %d. result: %s",
stream->id, stream->type, GST_TIME_ARGS (pts),
size, gst_flow_get_name (result));
/* should send segment info before gap event */
gst_flups_demux_send_segment (demux, stream, GST_CLOCK_TIME_NONE);
- GST_DEBUG_OBJECT (demux,
+ GST_LOG_OBJECT (demux,
"Sending gap update to pad %s time %" GST_TIME_FORMAT,
GST_PAD_NAME (stream->pad), GST_TIME_ARGS (new_start));
event =
guint64 scr_rate_d;
guint avail = gst_adapter_available (demux->adapter);
- GST_DEBUG ("parsing pack start");
+ GST_LOG ("parsing pack start");
if (G_UNLIKELY (avail < PACK_START_SIZE))
goto need_more_data;
guint32 next32;
guint8 stuffing_bytes;
- GST_DEBUG ("Found MPEG2 stream");
+ GST_LOG ("Found MPEG2 stream");
demux->is_mpeg2_pack = TRUE;
/* mpeg2 has more data */
/* We keep the offset of this scr */
demux->cur_scr_offset = demux->adapter_offset + 12;
- GST_DEBUG_OBJECT (demux, "SCR: 0x%08" G_GINT64_MODIFIER "x SCRE: 0x%08x",
+ GST_LOG_OBJECT (demux, "SCR: 0x%08" G_GINT64_MODIFIER "x SCRE: 0x%08x",
scr, scr_ext);
if (scr_ext) {
new_rate = (next32 & 0xfffffc00) >> 10;
stuffing_bytes = (next32 & 0x07);
- GST_DEBUG_OBJECT (demux, "stuffing bytes: %d", stuffing_bytes);
+ GST_LOG_OBJECT (demux, "stuffing bytes: %d", stuffing_bytes);
data += 4;
length += stuffing_bytes;
scr_rate_d = demux->scr_rate_d;
}
- GST_DEBUG_OBJECT (demux, "%s mode scr: %" G_GUINT64_FORMAT " at %"
+ GST_LOG_OBJECT (demux, "%s mode scr: %" G_GUINT64_FORMAT " at %"
G_GUINT64_FORMAT ", first scr: %" G_GUINT64_FORMAT
" at %" G_GUINT64_FORMAT ", scr rate: %" G_GUINT64_FORMAT
"/%" G_GUINT64_FORMAT "(%f)",
else
demux->next_scr = old_scr - adjust;
- GST_DEBUG_OBJECT (demux,
+ GST_LOG_OBJECT (demux,
"bss: %" G_GUINT64_FORMAT ", next_scr: %" G_GUINT64_FORMAT
", old_scr: %" G_GUINT64_FORMAT ", scr: %" G_GUINT64_FORMAT,
bss, demux->next_scr, old_scr, scr_adjusted);
adjustment */
if (G_UNLIKELY (diff > CLOCK_FREQ)) {
demux->scr_adjust = demux->next_scr - scr;
- GST_DEBUG_OBJECT (demux, "discont found, diff: %" G_GINT64_FORMAT
+ GST_LOG_OBJECT (demux, "discont found, diff: %" G_GINT64_FORMAT
", adjust %" G_GINT64_FORMAT, diff, demux->scr_adjust);
scr_adjusted = demux->next_scr;
/* don't update rate estimation on disconts */
/* Number of audio frames in this packet */
nframes = map.data[offset++];
datalen--;
- GST_DEBUG_OBJECT (demux, "private type 0x%02x, %d frames", id,
+ GST_LOG_OBJECT (demux, "private type 0x%02x, %d frames", id,
nframes);
} else {
- GST_DEBUG_OBJECT (demux, "private type 0x%02x, stream type %d", id,
+ GST_LOG_OBJECT (demux, "private type 0x%02x, stream type %d", id,
stream_type);
}
}
}
if (filter->pts != -1) {
demux->next_pts = filter->pts + demux->scr_adjust;
- GST_DEBUG_OBJECT (demux, "PTS = %" G_GUINT64_FORMAT
+ GST_LOG_OBJECT (demux, "PTS = %" G_GUINT64_FORMAT
"(%" G_GUINT64_FORMAT ")", filter->pts, demux->next_pts);
} else
demux->next_pts = G_MAXUINT64;
} else {
demux->next_dts = demux->next_pts;
}
- GST_DEBUG_OBJECT (demux, "DTS = orig %" G_GUINT64_FORMAT
+ GST_LOG_OBJECT (demux, "DTS = orig %" G_GUINT64_FORMAT
" (%" G_GUINT64_FORMAT ")", filter->dts, demux->next_dts);
demux->current_stream = gst_flups_demux_get_stream (demux, id, stream_type);