GNOME Bugzilla – Bug 536226
fix query duration
Last modified: 2008-09-26 09:57:26 UTC
this patch fixes the query duration in amr parser element. Note: we do not care about the 6 bytes at the beginning of the file, this can easily be done, though, but I'm not sure it's worth it.
Created attachment 111947 [details] [review] patch for query
oops, forgot one occurence around line 340: - block = block_size[mode] + 1; /* add one for the mode */ + amrnbparse->block = block_size[mode] + 1; /* add one for the mode */
Could you attach a combined patch? :)
Created attachment 112203 [details] [review] combined patch
Patch by: Benoit Fouet <benoit dot fouet at purplelabs dot com> * ext/amrnb/amrnbparse.c: (gst_amrnbparse_query), (gst_amrnbparse_chain), (gst_amrnbparse_loop), (gst_amrnbparse_state_change): * ext/amrnb/amrnbparse.h: Fix the duration query. Fixes #536226. Also set caps on the pads and buffers more correctly.