typefind: require bytes before typefinding

Require that we have some bytes in the adapter before we attempt to typefind.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=680479
This commit is contained in:
Wim Taymans 2012-07-24 12:38:15 +02:00
parent d06885101e
commit a1f1bbd363

View file

@ -864,7 +864,7 @@ gst_type_find_element_chain_do_typefinding (GstTypeFindElement * typefind,
have_min = avail >= TYPE_FIND_MIN_SIZE;
have_max = avail >= TYPE_FIND_MAX_SIZE;
} else {
have_min = TRUE;
have_min = avail > 0;
have_max = TRUE;
}