summaryrefslogtreecommitdiffstats
path: root/gst/rtp
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2009-04-18 18:47:05 +0200
committerEdward Hervey <bilboed@bilboed.com>2009-04-18 18:51:29 +0200
commitf6b774fbcc7a7a77b1d7e2dbc6e8b1c2ec138d86 (patch)
treee3ffb7753e1a9b97626fac118a8af1b0835f961a /gst/rtp
parentf6458e2c4c3328c814eb0bd103d7388c654e6c84 (diff)
rtpamrpay: Remove unneeded variable, the value is only read once.
Diffstat (limited to 'gst/rtp')
-rw-r--r--gst/rtp/gstrtpamrpay.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gst/rtp/gstrtpamrpay.c b/gst/rtp/gstrtpamrpay.c
index 246cfca6..23d5e0b1 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 */