rtpsession: don't unref buffer twice
authorWim Taymans <wtaymans@redhat.com>
Thu, 28 Nov 2013 15:50:42 +0000 (16:50 +0100)
committerWim Taymans <wtaymans@redhat.com>
Thu, 28 Nov 2013 15:51:13 +0000 (16:51 +0100)
Cleaning the packet info will already unref the buffer.

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

gst/rtpmanager/rtpsession.c

index 4c199b6..27e3d93 100644 (file)
@@ -1833,7 +1833,6 @@ rtp_session_process_rtp (RTPSession * sess, GstBuffer * buffer,
 collision:
   {
     RTP_SESSION_UNLOCK (sess);
-    gst_buffer_unref (buffer);
     clean_packet_info (&pinfo);
     GST_DEBUG ("ignoring packet because its collisioning");
     return GST_FLOW_OK;