decodebin2: Don't post async-done when not needed
authorEdward Hervey <bilboed@bilboed.com>
Wed, 29 Sep 2010 16:54:28 +0000 (18:54 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Wed, 29 Sep 2010 16:59:16 +0000 (18:59 +0200)
commitb8dea19bbdb0571e31fbcf3c65516dbe4a92bf76
tree3d0225e62480d4131c7ebcf61c83f69b75c285a5
parenta0fa0ff8bf3374ca6504cbce0f322d1e1dbaec11
decodebin2: Don't post async-done when not needed

Where it was previously located, we would get async-done for the first
unknown-type, even if other valid streams would appear afterwards.
decode_bin_expose() will take care of posting async-done when the group
is exposed.

But we still want to post it in case the typefinding returned an unknown
type, in which case we will post it after posting an error.

These two changes ensure we do as much as possible before posting async-done.
gst/playback/gstdecodebin2.c