summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2009-04-18 18:48:06 +0200
committerEdward Hervey <bilboed@bilboed.com>2009-04-18 18:51:29 +0200
commit84b6d07c75ca6555743b2fa048464db495bf0289 (patch)
tree66a214730452d032a960ab9ad1e0e748eccc1077
parentf6b774fbcc7a7a77b1d7e2dbc6e8b1c2ec138d86 (diff)
rtpamrdepay: Remove unneeded variable, the value is only read once.
-rw-r--r--gst/rtp/gstrtpamrdepay.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gst/rtp/gstrtpamrdepay.c b/gst/rtp/gstrtpamrdepay.c
index 138378598..e17c00e02 100644
--- a/gst/rtp/gstrtpamrdepay.c
+++ b/gst/rtp/gstrtpamrdepay.c
@@ -299,9 +299,7 @@ gst_rtp_amr_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf)
gint i, num_packets, num_nonempty_packets;
gint amr_len;
gint ILL, ILP;
- gboolean marker;
- marker = gst_rtp_buffer_get_marker (buf);
payload_len = gst_rtp_buffer_get_payload_len (buf);
/* need at least 2 bytes for the header */
@@ -409,11 +407,10 @@ gst_rtp_amr_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf)
/* we can set the duration because each packet is 20 milliseconds */
GST_BUFFER_DURATION (outbuf) = num_packets * 20 * GST_MSECOND;
- if (marker) {
+ if (gst_rtp_buffer_get_marker (buf)) {
/* marker bit marks a discont buffer after a talkspurt. */
GST_DEBUG_OBJECT (depayload, "marker bit was set");
GST_BUFFER_FLAG_SET (outbuf, GST_BUFFER_FLAG_DISCONT);
- marker = FALSE;
}
GST_DEBUG_OBJECT (depayload, "pushing buffer of size %d",