X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=libchimara%2Fschannel.c;fp=libchimara%2Fschannel.c;h=f6bd1ff3918a5683caa8988f5ff1f330b4b9f6b2;hb=8909e6f8c9763bd4e2fce48008c6bf357c4d7453;hp=3c75599691d9c70304cc5bb776805f5a6041b700;hpb=66dda87a29a7bd87e29d9239e8d83ddf90517a8c;p=projects%2Fchimara%2Fchimara.git 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); }