projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f6b774f
)
rtpamrdepay: Remove unneeded variable, the value is only read once.
author
Edward Hervey
<bilboed@bilboed.com>
Sat, 18 Apr 2009 16:48:06 +0000
(18:48 +0200)
committer
Edward Hervey
<bilboed@bilboed.com>
Sat, 18 Apr 2009 16:51:29 +0000
(18:51 +0200)
gst/rtp/gstrtpamrdepay.c
patch
|
blob
|
history
diff --git
a/gst/rtp/gstrtpamrdepay.c
b/gst/rtp/gstrtpamrdepay.c
index
1383785
..
e17c00e
100644
(file)
--- 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;
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 */
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;
/* 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 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",
}
GST_DEBUG_OBJECT (depayload, "pushing buffer of size %d",