X-Git-Url: https://git.stderr.nl/gitweb?p=projects%2Fchimara%2Fchimara.git;a=blobdiff_plain;f=libchimara%2Fschannel.c;fp=libchimara%2Fschannel.c;h=f6bd1ff3918a5683caa8988f5ff1f330b4b9f6b2;hp=3c75599691d9c70304cc5bb776805f5a6041b700;hb=9e5621c12a6c21c24a5b1e7829a9f37a50aca389;hpb=68a6bb0f8c5be236fe81af76961c85ac5cd63e22 diff --git a/libchimara/schannel.c b/libchimara/schannel.c index 3c75599..f6bd1ff 100644 --- a/libchimara/schannel.c +++ b/libchimara/schannel.c @@ -170,6 +170,12 @@ on_type_found(GstElement *typefind, guint probability, GstCaps *caps, schanid_t WARNING_S(_("Unexpected audio type in blorb"), type); } + /* This is necessary in case this handler occurs in the middle of a state + change */ + gst_element_sync_state_with_parent(s->decode); + if(s->demux != NULL) + gst_element_sync_state_with_parent(s->demux); + finally: g_free(type); }