diff options
author | David Schleef <ds@schleef.org> | 2014-09-08 02:24:51 -0700 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2014-09-08 02:24:51 -0700 |
commit | 1415926c494a75b9b7150fbf75264ee3cd096d00 (patch) | |
tree | 4901099d1065d638db0c847f6111612fec506a98 | |
parent | 3840538b23d8d902879f08dc387cfdb6d500fa3c (diff) |
Remove assert
-rw-r--r-- | rtmp/rtmpchunk.c | 5 |
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)); |