[gst-cvs] gst-plugins-base: ogg: add some more debug statements

Wim Taymans wtay at kemper.freedesktop.org
Fri Oct 29 04:13:15 PDT 2010


Module: gst-plugins-base
Branch: master
Commit: 6c14f6c97099355abbb815b9aa36f3eeda28bf0c
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=6c14f6c97099355abbb815b9aa36f3eeda28bf0c

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Fri Oct 29 11:47:53 2010 +0100

ogg: add some more debug statements

---

 ext/ogg/gstoggdemux.c  |    1 +
 ext/ogg/gstoggstream.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c
index bb20a81..ad7a252 100644
--- a/ext/ogg/gstoggdemux.c
+++ b/ext/ogg/gstoggdemux.c
@@ -843,6 +843,7 @@ gst_ogg_pad_submit_packet (GstOggPad * pad, ogg_packet * packet)
    * up.  */
   packet->b_o_s = gst_ogg_stream_packet_is_header (&pad->map, packet);
   if (!packet->b_o_s) {
+    GST_DEBUG ("found non-header packet");
     pad->map.have_headers = TRUE;
     if (pad->start_time == GST_CLOCK_TIME_NONE) {
       gint64 duration = gst_ogg_stream_get_packet_duration (&pad->map, packet);
diff --git a/ext/ogg/gstoggstream.c b/ext/ogg/gstoggstream.c
index 175bff4..82df0bb 100644
--- a/ext/ogg/gstoggstream.c
+++ b/ext/ogg/gstoggstream.c
@@ -1543,6 +1543,7 @@ setup_kate_mapper (GstOggStream * pad, ogg_packet * packet)
   GST_LOG ("sample rate: %d", pad->granulerate_n);
 
   pad->n_header_packets = GST_READ_UINT8 (data + 11);
+  GST_LOG ("kate header packets: %d", pad->n_header_packets);
 
   if (pad->granulerate_n == 0)
     return FALSE;





More information about the Gstreamer-commits mailing list