gst/gdp/gstgdpdepay.c: Fix event parsing by gdpdepay. Fixes #349916.

Original commit message from CVS:
2006-08-04  Zaheer Abbas Merali  <zaheerabbas at merali dot org>

* gst/gdp/gstgdpdepay.c: (gst_gdp_depay_chain):
Fix event parsing by gdpdepay.  Fixes #349916.
This commit is contained in:
Zaheer Abbas Merali 2006-08-04 13:20:23 +00:00
parent 49d9df0eda
commit 16992f0d00

View File

@ -275,20 +275,16 @@ gst_gdp_depay_chain (GstPad * pad, GstBuffer * buffer)
goto done; goto done;
/* change state based on type */ /* change state based on type */
switch (this->payload_type) { if (this->payload_type == GST_DP_PAYLOAD_BUFFER) {
case GST_DP_PAYLOAD_BUFFER:
GST_LOG_OBJECT (this, "switching to state BUFFER"); GST_LOG_OBJECT (this, "switching to state BUFFER");
this->state = GST_GDP_DEPAY_STATE_BUFFER; this->state = GST_GDP_DEPAY_STATE_BUFFER;
break; } else if (this->payload_type == GST_DP_PAYLOAD_CAPS) {
case GST_DP_PAYLOAD_CAPS:
GST_LOG_OBJECT (this, "switching to state CAPS"); GST_LOG_OBJECT (this, "switching to state CAPS");
this->state = GST_GDP_DEPAY_STATE_CAPS; this->state = GST_GDP_DEPAY_STATE_CAPS;
break; } else if (this->payload_type >= GST_DP_PAYLOAD_EVENT_NONE) {
case GST_DP_PAYLOAD_EVENT_NONE:
GST_LOG_OBJECT (this, "switching to state EVENT"); GST_LOG_OBJECT (this, "switching to state EVENT");
this->state = GST_GDP_DEPAY_STATE_EVENT; this->state = GST_GDP_DEPAY_STATE_EVENT;
break; } else {
default:
goto wrong_type; goto wrong_type;
} }
break; break;