[gst-cvs] gst-plugins-good: rtph263depay: reset start variable properly
Wim Taymans
wtay at kemper.freedesktop.org
Tue Dec 22 05:41:49 PST 2009
Module: gst-plugins-good
Branch: master
Commit: 27ff4a8a4701c406524b1342ebcf2917168ac16a
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=27ff4a8a4701c406524b1342ebcf2917168ac16a
Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date: Tue Dec 22 14:27:40 2009 +0100
rtph263depay: reset start variable properly
---
gst/rtp/gstrtph263depay.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/gst/rtp/gstrtph263depay.c b/gst/rtp/gstrtph263depay.c
index 2398aa2..822b127 100644
--- a/gst/rtp/gstrtph263depay.c
+++ b/gst/rtp/gstrtph263depay.c
@@ -127,7 +127,6 @@ gst_rtp_h263_depay_init (GstRtpH263Depay * rtph263depay,
rtph263depay->offset = 0;
rtph263depay->leftover = 0;
- rtph263depay->start = TRUE;
}
static void
@@ -274,7 +273,7 @@ gst_rtp_h263_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf)
}
if (!EBIT) {
- if(rtph263depay->start){
+ if (rtph263depay->start) {
GstBuffer *tmp = gst_buffer_new_and_alloc (payload_len);
/* Copy the entire buffer */
@@ -282,7 +281,7 @@ gst_rtp_h263_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf)
gst_adapter_push (rtph263depay->adapter, tmp);
}
} else {
- if(rtph263depay->start){
+ if (rtph263depay->start) {
GstBuffer *tmp = gst_buffer_new_and_alloc (payload_len - 1);
/* Copy the entire buffer except for the last byte */
@@ -299,7 +298,7 @@ gst_rtp_h263_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf)
}
if (M) {
- if(rtph263depay->start){
+ if (rtph263depay->start) {
/* frame is completed */
guint avail;
guint32 timestamp;
@@ -325,7 +324,7 @@ gst_rtp_h263_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf)
gst_base_rtp_depayload_push_ts (depayload, timestamp, outbuf);
rtph263depay->offset = 0;
rtph263depay->leftover = 0;
- }else{
+ } else {
rtph263depay->start = TRUE;
}
}
@@ -347,6 +346,7 @@ gst_rtp_h263_depay_change_state (GstElement * element,
break;
case GST_STATE_CHANGE_READY_TO_PAUSED:
gst_adapter_clear (rtph263depay->adapter);
+ rtph263depay->start = TRUE;
break;
default:
break;
More information about the Gstreamer-commits
mailing list