rtpsession: fix compilation
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 1 Feb 2011 17:17:13 +0000 (18:17 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 1 Feb 2011 17:28:50 +0000 (18:28 +0100)
gst/rtpmanager/rtpsession.c

index 7d806ee..a0ac833 100644 (file)
@@ -2809,12 +2809,11 @@ rtp_session_on_timeout (RTPSession * sess, GstClockTime current_time,
         data.rtcp, data.is_early, &do_not_suppress);
 
     if (sess->callbacks.send_rtcp && (do_not_suppress || !data.may_suppress)) {
+      guint packet_size;
+
       /* close the RTCP packet */
       gst_rtcp_buffer_end (data.rtcp);
 
-    if (sess->callbacks.send_rtcp) {
-      guint packet_size;
-
       packet_size = GST_BUFFER_SIZE (data.rtcp) + sess->header_len;
 
       UPDATE_AVG (sess->stats.avg_rtcp_packet_size, packet_size);