Just removed a couple of lines of weird code used during development/test time.
authorFlavio Oliveira <flavio.oliveira@indt.org.br>
Tue, 25 Oct 2005 21:09:36 +0000 (21:09 +0000)
committerFlavio Oliveira <flavio.oliveira@indt.org.br>
Tue, 25 Oct 2005 21:09:36 +0000 (21:09 +0000)
Original commit message from CVS:
Just removed a couple of lines of weird code used during development/test time.

ChangeLog
gst/rtp/gstrtpg711dec.c
gst/rtp/gstrtpg711depay.c

index dd257090cc4ef55f6e84f4403335d214aee33c5f..d554595fdf909b604bd47e7e26775265025f5459 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-10-25  Edgard Lima  <edgard.lima@indt.org.br>
+
+       * gst/rtp/gstrtpg711dec.c
+       Just removed a couple of lines of weird code used during
+       development/test time.
+
 2005-10-25  Edgard Lima  <edgard.lima@indt.org.br>
 
        * gst/rtp/Makefile.am
index 6456f72c460405a501ffb8d0ea3886de5fbb13c6..d1feeba45a3080db6e0aba86d244d9cb63c21195 100644 (file)
@@ -204,22 +204,14 @@ gst_rtpg711dec_chain (GstPad * pad, GstBuffer * buf)
   {
     gint payload_len;
     guint8 *payload;
-    guint32 timestamp;
-    static guint32 firstTS = -1;
 
     payload_len = gst_rtpbuffer_get_payload_len (buf);
     payload = gst_rtpbuffer_get_payload (buf);
 
-    timestamp = gst_rtpbuffer_get_timestamp (buf);
-
-    if (firstTS == -1) {
-      firstTS = gst_rtpbuffer_get_timestamp (buf);
-    }
-    timestamp = gst_rtpbuffer_get_timestamp (buf) - firstTS;
-
     outbuf = gst_buffer_new_and_alloc (payload_len);
 
-    GST_BUFFER_TIMESTAMP (outbuf) = timestamp * GST_SECOND / 8000;
+    GST_BUFFER_TIMESTAMP (outbuf) =
+        gst_rtpbuffer_get_timestamp (buf) * GST_SECOND / 8000;
 
     memcpy (GST_BUFFER_DATA (outbuf), payload, payload_len);
 
index 6456f72c460405a501ffb8d0ea3886de5fbb13c6..d1feeba45a3080db6e0aba86d244d9cb63c21195 100644 (file)
@@ -204,22 +204,14 @@ gst_rtpg711dec_chain (GstPad * pad, GstBuffer * buf)
   {
     gint payload_len;
     guint8 *payload;
-    guint32 timestamp;
-    static guint32 firstTS = -1;
 
     payload_len = gst_rtpbuffer_get_payload_len (buf);
     payload = gst_rtpbuffer_get_payload (buf);
 
-    timestamp = gst_rtpbuffer_get_timestamp (buf);
-
-    if (firstTS == -1) {
-      firstTS = gst_rtpbuffer_get_timestamp (buf);
-    }
-    timestamp = gst_rtpbuffer_get_timestamp (buf) - firstTS;
-
     outbuf = gst_buffer_new_and_alloc (payload_len);
 
-    GST_BUFFER_TIMESTAMP (outbuf) = timestamp * GST_SECOND / 8000;
+    GST_BUFFER_TIMESTAMP (outbuf) =
+        gst_rtpbuffer_get_timestamp (buf) * GST_SECOND / 8000;
 
     memcpy (GST_BUFFER_DATA (outbuf), payload, payload_len);