From: Thomas Vander Stichele Date: Fri, 2 Jun 2006 09:17:07 +0000 (+0000) Subject: show type number when packet is of the wrong type X-Git-Tag: 1.19.3~511^2~11837 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2a227c627926d73dfd76b77ba746eb675274725f;p=platform%2Fupstream%2Fgstreamer.git show type number when packet is of the wrong type Original commit message from CVS: show type number when packet is of the wrong type --- diff --git a/gst/tcp/gsttcp.c b/gst/tcp/gsttcp.c index 76c86c316e..e6e05c0cf6 100644 --- a/gst/tcp/gsttcp.c +++ b/gst/tcp/gsttcp.c @@ -381,7 +381,8 @@ validate_error: is_not_buffer: { GST_ELEMENT_ERROR (this, RESOURCE, READ, (NULL), - ("GDP packet contains something that is not a buffer")); + ("GDP packet contains something that is not a buffer (type %d)", + gst_dp_header_payload_type (header))); g_free (header); return GST_FLOW_ERROR; } @@ -461,7 +462,8 @@ header_validate_error: is_not_caps: { GST_ELEMENT_ERROR (this, RESOURCE, READ, (NULL), - ("GDP packet contains something that is not a caps")); + ("GDP packet contains something that is not a caps (type %d)", + gst_dp_header_payload_type (header))); g_free (header); return GST_FLOW_ERROR; }