ext/theora/theoradec.c: Fix broken code generation by gcc by swapping arguments.
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>
Mon, 10 Jan 2005 18:45:53 +0000 (18:45 +0000)
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>
Mon, 10 Jan 2005 18:45:53 +0000 (18:45 +0000)
Original commit message from CVS:
* ext/theora/theoradec.c: (theora_dec_chain):
Fix broken code generation by gcc by swapping arguments.
* ext/vorbis/vorbisdec.c: (vorbis_dec_src_query):
Fix \n in debug.

ChangeLog
ext/theora/theoradec.c
ext/vorbis/vorbisdec.c

index 0ad10ba..aab4ee2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-01-10  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
+
+       * ext/theora/theoradec.c: (theora_dec_chain):
+         Fix broken code generation by gcc by swapping arguments.
+       * ext/vorbis/vorbisdec.c: (vorbis_dec_src_query):
+         Fix \n in debug.
+
 2005-01-10  Stephane LOEUILLET  <stephane.loeuillet@tiscali.fr>
 
        * TODO:
index 849a81f..315c977 100644 (file)
@@ -556,8 +556,10 @@ theora_dec_chain (GstPad * pad, GstData * data)
   packet.b_o_s = (packet.packetno == 0) ? 1 : 0;
   packet.e_o_s = 0;
 
-  GST_DEBUG_OBJECT (dec, "header=%d packetno=%d, outtime=%" GST_TIME_FORMAT,
-      packet.packet[0], packet.packetno, GST_TIME_ARGS (outtime));
+  GST_DEBUG_OBJECT (dec, "outtime=%" GST_TIME_FORMAT " (%"
+      G_GUINT64_FORMAT ") header=0x%02x packetno=%d",
+      GST_TIME_ARGS (outtime), outtime,
+      (gint) packet.packet[0], packet.packetno);
 
   /* switch depending on packet type */
   if (packet.packet[0] & 0x80) {
@@ -702,6 +704,9 @@ theora_dec_chain (GstPad * pad, GstData * data)
       if (add_one) {
         outtime = GST_SECOND * theora_granule_time (&dec->state,
             dec->granulepos);
+        GST_DEBUG_OBJECT (dec,
+            "Correcting output time to %" GST_TIME_FORMAT,
+            GST_TIME_ARGS (outtime));
       }
     } else if (dec->need_keyframe) {
       GST_WARNING_OBJECT (dec, "dropping frame because we need a keyframe");
index 9543ee5..5a9dcaf 100644 (file)
@@ -257,7 +257,7 @@ vorbis_dec_src_query (GstPad * pad, GstQueryType query, GstFormat * format,
     return FALSE;
 
   GST_LOG_OBJECT (dec,
-      "query %u: peer returned granulepos: %llu - we return %llu (format %u)\n",
+      "query %u: peer returned granulepos: %llu - we return %llu (format %u)",
       query, granulepos, *value, *format);
   return TRUE;
 }