projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0640f2
)
vrawdepay: don't access rtp buffer after unmap
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Fri, 2 Nov 2012 18:47:26 +0000
(18:47 +0000)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Fri, 2 Nov 2012 18:48:17 +0000
(18:48 +0000)
Read the marker bit before we unmap the rtp packet.
gst/rtp/gstrtpvrawdepay.c
patch
|
blob
|
history
diff --git
a/gst/rtp/gstrtpvrawdepay.c
b/gst/rtp/gstrtpvrawdepay.c
index
8b146bf
..
2561886
100644
(file)
--- a/
gst/rtp/gstrtpvrawdepay.c
+++ b/
gst/rtp/gstrtpvrawdepay.c
@@
-301,6
+301,7
@@
gst_rtp_vraw_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf)
gint width, height, xinc, yinc;
GstRTPBuffer rtp = { NULL };
GstVideoFrame frame;
+ gboolean marker;
rtpvrawdepay = GST_RTP_VRAW_DEPAY (depayload);
@@
-523,9
+524,10
@@
gst_rtp_vraw_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf)
}
gst_video_frame_unmap (&frame);
+ marker = gst_rtp_buffer_get_marker (&rtp);
gst_rtp_buffer_unmap (&rtp);
- if (
gst_rtp_buffer_get_marker (&rtp)
) {
+ if (
marker
) {
GST_LOG_OBJECT (depayload, "marker, flushing frame");
if (rtpvrawdepay->outbuf) {
gst_rtp_base_depayload_push (depayload, rtpvrawdepay->outbuf);