rtpbuffer: avoid accessing NULL buffer even more
authorBrian Peters <brianfpeters@gmail.com>
Thu, 30 Jul 2015 14:16:57 +0000 (15:16 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 30 Jul 2015 14:16:57 +0000 (15:16 +0100)
Previous commit was incompletely applied.

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

gst-libs/gst/rtp/gstrtpbuffer.c

index 51b323e..a61051e 100644 (file)
@@ -791,7 +791,7 @@ ensure_buffers (GstRTPBuffer * rtp)
 
     gst_rtp_buffer_unmap (rtp);
     gst_buffer_remove_memory_range (buf, pos, -1);
-    gst_rtp_buffer_map (rtp->buffer, GST_MAP_READWRITE, rtp);
+    gst_rtp_buffer_map (buf, GST_MAP_READWRITE, rtp);
   }
 }