mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-08 13:18:52 +00:00
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:
parent
9bf2b5e3db
commit
fac7780d02
2 changed files with 16 additions and 15 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
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.
|
||||||
|
|
||||||
2006-08-03 Tim-Philipp Müller <tim at centricular dot net>
|
2006-08-03 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
Patch by: cascardo at holoscopio dot com
|
Patch by: cascardo at holoscopio dot com
|
||||||
|
|
|
@ -275,21 +275,17 @@ 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;
|
} else if (this->payload_type == GST_DP_PAYLOAD_CAPS) {
|
||||||
break;
|
GST_LOG_OBJECT (this, "switching to state CAPS");
|
||||||
case GST_DP_PAYLOAD_CAPS:
|
this->state = GST_GDP_DEPAY_STATE_CAPS;
|
||||||
GST_LOG_OBJECT (this, "switching to state CAPS");
|
} else if (this->payload_type >= GST_DP_PAYLOAD_EVENT_NONE) {
|
||||||
this->state = GST_GDP_DEPAY_STATE_CAPS;
|
GST_LOG_OBJECT (this, "switching to state EVENT");
|
||||||
break;
|
this->state = GST_GDP_DEPAY_STATE_EVENT;
|
||||||
case GST_DP_PAYLOAD_EVENT_NONE:
|
} else {
|
||||||
GST_LOG_OBJECT (this, "switching to state EVENT");
|
goto wrong_type;
|
||||||
this->state = GST_GDP_DEPAY_STATE_EVENT;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
goto wrong_type;
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue