aacparse: Fix busyloop when seeking. Fixes #575388
authorRené Stadler <mail@renestadler.de>
Wed, 18 Mar 2009 23:17:25 +0000 (01:17 +0200)
committerRené Stadler <mail@renestadler.de>
Mon, 23 Mar 2009 18:57:15 +0000 (20:57 +0200)
commit83016fa9dc4d3229aae00ce53488a6375ca43132
tree554b2133876e5e0cfc0599207683db5d53114420
parent3f90e6ff137d3e6e952b6c1550bd8a535d7fc391
aacparse: Fix busyloop when seeking. Fixes #575388

The problem is that after a discont, set_min_frame_size(1024) is called when
detect_stream returns FALSE. However, detect_stream calls check_adts_frame
which sets the frame size on its own to something larger than 1024. This is the
same situation as in the beginning, so the base class ends up calling
check_valid_frame in an endless loop.
gst/aacparse/gstaacparse.c