From f6b774fbcc7a7a77b1d7e2dbc6e8b1c2ec138d86 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sat, 18 Apr 2009 18:47:05 +0200 Subject: [PATCH] rtpamrpay: Remove unneeded variable, the value is only read once. --- gst/rtp/gstrtpamrpay.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gst/rtp/gstrtpamrpay.c b/gst/rtp/gstrtpamrpay.c index 246cfca6ba..23d5e0b1ba 100644 --- a/gst/rtp/gstrtpamrpay.c +++ b/gst/rtp/gstrtpamrpay.c @@ -207,7 +207,6 @@ gst_rtp_amr_pay_handle_buffer (GstBaseRTPPayload * basepayload, gint i, num_packets, num_nonempty_packets; gint amr_len; gint *frame_size; - gboolean discont; rtpamrpay = GST_RTP_AMR_PAY (basepayload); mtu = GST_BASE_RTP_PAYLOAD_MTU (rtpamrpay); @@ -216,7 +215,6 @@ gst_rtp_amr_pay_handle_buffer (GstBaseRTPPayload * basepayload, data = GST_BUFFER_DATA (buffer); timestamp = GST_BUFFER_TIMESTAMP (buffer); duration = GST_BUFFER_DURATION (buffer); - discont = GST_BUFFER_IS_DISCONT (buffer); /* setup frame size pointer */ if (rtpamrpay->mode == GST_RTP_AMR_P_MODE_NB) @@ -275,11 +273,10 @@ gst_rtp_amr_pay_handle_buffer (GstBaseRTPPayload * basepayload, GST_BUFFER_DURATION (outbuf) = 20 * GST_MSECOND; } - if (discont) { + if (GST_BUFFER_IS_DISCONT (buffer)) { GST_DEBUG_OBJECT (basepayload, "discont, setting marker bit"); GST_BUFFER_FLAG_SET (outbuf, GST_BUFFER_FLAG_DISCONT); gst_rtp_buffer_set_marker (outbuf, TRUE); - discont = FALSE; } /* get payload, this is now writable */