tests: fix more unit tests
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 28 Mar 2011 15:46:52 +0000 (17:46 +0200)
committerTim-Philipp Müller <tim@centricular.net>
Tue, 11 Sep 2012 00:54:34 +0000 (01:54 +0100)
tests/check/elements/gdppay.c

index c6e437b..05391f1 100644 (file)
@@ -505,6 +505,7 @@ GST_START_TEST (test_crc)
 
   /* verify the header checksum */
   /* CRC's start at 58 in the header */
+  outbuffer = gst_buffer_make_writable (outbuffer);
   data = gst_buffer_map (outbuffer, &size, NULL, GST_MAP_READWRITE);
   crc_calculated = gst_dp_crc (data, 58);
   crc_read = GST_READ_UINT16_BE (data + 58);