mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
sbc: dec: chain up to parent before downward state change
This commit is contained in:
parent
c6f6cc736f
commit
9581e704b6
1 changed files with 8 additions and 1 deletions
|
@ -135,6 +135,7 @@ done:
|
||||||
static GstStateChangeReturn
|
static GstStateChangeReturn
|
||||||
sbc_dec_change_state (GstElement * element, GstStateChange transition)
|
sbc_dec_change_state (GstElement * element, GstStateChange transition)
|
||||||
{
|
{
|
||||||
|
GstStateChangeReturn result;
|
||||||
GstSbcDec *dec = GST_SBC_DEC (element);
|
GstSbcDec *dec = GST_SBC_DEC (element);
|
||||||
|
|
||||||
switch (transition) {
|
switch (transition) {
|
||||||
|
@ -147,7 +148,13 @@ sbc_dec_change_state (GstElement * element, GstStateChange transition)
|
||||||
sbc_init (&dec->sbc, 0);
|
sbc_init (&dec->sbc, 0);
|
||||||
dec->outcaps = NULL;
|
dec->outcaps = NULL;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
result = parent_class->change_state (element, transition);
|
||||||
|
|
||||||
|
switch (transition) {
|
||||||
case GST_STATE_CHANGE_PAUSED_TO_READY:
|
case GST_STATE_CHANGE_PAUSED_TO_READY:
|
||||||
GST_DEBUG ("Finish subband codec");
|
GST_DEBUG ("Finish subband codec");
|
||||||
if (dec->buffer) {
|
if (dec->buffer) {
|
||||||
|
@ -165,7 +172,7 @@ sbc_dec_change_state (GstElement * element, GstStateChange transition)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return parent_class->change_state (element, transition);
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue