rtpj2kpay: update fragment offset
authorThiago Santos <thiagoss@osg.samsung.com>
Tue, 13 Oct 2015 15:42:56 +0000 (12:42 -0300)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 20 Oct 2015 07:14:51 +0000 (10:14 +0300)
It was always being set to 0, making the resulting stream broken
for the receiver

https://bugzilla.gnome.org/show_bug.cgi?id=756422

gst/rtp/gstrtpj2kpay.c

index 0088ffd..2791ef4 100644 (file)
@@ -497,6 +497,7 @@ gst_rtp_j2k_pay_handle_buffer (GstRTPBasePayload * basepayload,
       state.header.tile = 0;
 
       offset += data_size;
+      state.header.offset = offset;
     }
     offset = pos;
   } while (offset < map.size);