gst/tcp/gsttcp.c: Fix a simple mistake (see the docs)
authorThomas Vander Stichele <thomas@apestaart.org>
Wed, 4 Oct 2006 13:18:57 +0000 (13:18 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Wed, 4 Oct 2006 13:18:57 +0000 (13:18 +0000)
Original commit message from CVS:
* gst/tcp/gsttcp.c: (gst_tcp_gdp_read_caps):
Fix a simple mistake (see the docs)
Fixes #359580

ChangeLog
gst/tcp/gsttcp.c

index 0e62b98963d0ceff7d3940cd0d84373defb8fdf1..16ff3704699f7d331e589e298fb3b69d6f0e0508 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-10-04  Thomas Vander Stichele  <thomas at apestaart dot org>
+
+       * gst/tcp/gsttcp.c: (gst_tcp_gdp_read_caps):
+         Fix a simple mistake (see the docs)
+         Fixes #359580
+
 2006-10-03  Tim-Philipp Müller  <tim at centricular dot net>
 
        * docs/plugins/Makefile.am:
index 0bd30128d8ca7705b8596f1d58026eb653589e77..73f30066c8eb6a67c249303a59f3dc21f6d92716 100644 (file)
@@ -432,7 +432,7 @@ gst_tcp_gdp_read_caps (GstElement * this, int socket, int cancel_fd,
   if (ret != GST_FLOW_OK)
     goto payload_read_error;
 
-  if (!gst_dp_validate_payload (payload_length, header, payload))
+  if (!gst_dp_validate_payload (GST_DP_HEADER_LENGTH, header, payload))
     goto payload_validate_error;
 
   *caps = gst_dp_caps_from_packet (GST_DP_HEADER_LENGTH, header, payload);