From: Wim Taymans Date: Mon, 17 Jul 2006 12:01:04 +0000 (+0000) Subject: ext/ogg/gstoggdemux.c: *sigh*, when is the compiler going to warn when the comments... X-Git-Tag: 1.19.3~511^2~11741 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11d9c41a7de3c5000c54f1f44f5cd0dabc4dd4f6;p=platform%2Fupstream%2Fgstreamer.git ext/ogg/gstoggdemux.c: *sigh*, when is the compiler going to warn when the comments are out-of-sync with the code.. R... Original commit message from CVS: * ext/ogg/gstoggdemux.c: (gst_ogg_pad_internal_chain), (gst_ogg_pad_submit_packet), (gst_ogg_demux_read_chain): *sigh*, when is the compiler going to warn when the comments are out-of-sync with the code.. Refix case of busted theora headers with 0 granule pos. --- diff --git a/ChangeLog b/ChangeLog index 85a3b5c..0414dc8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-07-17 Wim Taymans + + * ext/ogg/gstoggdemux.c: (gst_ogg_pad_internal_chain), + (gst_ogg_pad_submit_packet), (gst_ogg_demux_read_chain): + *sigh*, when is the compiler going to warn when the comments + are out-of-sync with the code.. Refix case of busted theora + headers with 0 granule pos. + 2006-07-14 Wim Taymans * gst-libs/gst/rtp/gstbasertpdepayload.c: diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index ce1db75..361c309 100644 --- a/ext/ogg/gstoggdemux.c +++ b/ext/ogg/gstoggdemux.c @@ -756,6 +756,8 @@ gst_ogg_pad_internal_chain (GstPad * pad, GstBuffer * buffer) if (oggpad->start_time == GST_CLOCK_TIME_NONE) { oggpad->start_time = timestamp; + GST_DEBUG_OBJECT (oggpad, "new start time: %" GST_TIME_FORMAT, + GST_TIME_ARGS (timestamp)); } gst_buffer_unref (buffer); @@ -1089,7 +1091,7 @@ gst_ogg_pad_submit_packet (GstOggPad * pad, ogg_packet * packet) /* correction for busted ogg, if the internal decoder outputed * a timestamp but we did not get a granulepos, it must have * been 0 and the time is therefore also 0 */ - if (pad->first_time == -1) { + if (pad->first_granule == -1) { GST_DEBUG_OBJECT (ogg, "%p found start time without granulepos", pad); pad->first_granule = 0; pad->first_time = 0; @@ -2296,11 +2298,17 @@ gst_ogg_demux_read_chain (GstOggDemux * ogg) if (pad->is_skeleton) continue; + GST_LOG_OBJECT (ogg, "convert first granule %" G_GUINT64_FORMAT " to time ", + pad->first_granule); + target = GST_FORMAT_TIME; if (!gst_ogg_pad_query_convert (pad, GST_FORMAT_DEFAULT, pad->first_granule, &target, (gint64 *) & pad->first_time)) { GST_WARNING_OBJECT (ogg, "could not convert granulepos to time"); + } else { + GST_LOG_OBJECT (ogg, "converted to first time %" GST_TIME_FORMAT, + GST_TIME_ARGS (pad->first_time)); } pad->mode = GST_OGG_PAD_MODE_STREAMING;