avauddec: Don't believe we're negotiated if negotiation failed

It can happen that negotiation fails during get_buffer(), but then
we don't retry later and never return NOT_NEGOTIATED upstream...
and instead run into assertions.

https://bugzilla.gnome.org/show_bug.cgi?id=708769
This commit is contained in:
Sebastian Dröge 2013-10-02 12:45:44 +02:00
parent 9becd72b60
commit 9febec71c0

View file

@ -441,6 +441,7 @@ caps_failed:
GST_ELEMENT_ERROR (ffmpegdec, CORE, NEGOTIATION, (NULL), GST_ELEMENT_ERROR (ffmpegdec, CORE, NEGOTIATION, (NULL),
("Could not set caps for libav decoder (%s), not fixed?", ("Could not set caps for libav decoder (%s), not fixed?",
oclass->in_plugin->name)); oclass->in_plugin->name));
memset (&ffmpegdec->info, 0, sizeof (ffmpegdec->info));
return FALSE; return FALSE;
} }