summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2014-09-08 02:24:51 -0700
committerDavid Schleef <ds@schleef.org>2014-09-08 02:24:51 -0700
commit1415926c494a75b9b7150fbf75264ee3cd096d00 (patch)
tree4901099d1065d638db0c847f6111612fec506a98
parent3840538b23d8d902879f08dc387cfdb6d500fa3c (diff)
Remove assert
-rw-r--r--rtmp/rtmpchunk.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/rtmp/rtmpchunk.c b/rtmp/rtmpchunk.c
index 518b389..e17ebea 100644
--- a/rtmp/rtmpchunk.c
+++ b/rtmp/rtmpchunk.c
@@ -228,6 +228,11 @@ gst_rtmp_chunk_serialize (GstRtmpChunk * chunk,
int i;
chunkdata = g_bytes_get_data (chunk->payload, &chunksize);
+ if (chunk->message_length != chunksize) {
+ GST_ERROR ("message_length wrong (%" G_GSIZE_FORMAT " should be %"
+ G_GSIZE_FORMAT ")", chunk->message_length, chunksize);
+ }
+
g_assert (chunk->message_length == chunksize);
g_assert (chunk->chunk_stream_id < 64);
data = g_malloc (chunksize + 12 + (chunksize / max_chunk_size));