GNOME Bugzilla – Bug 589574
[typefind] incorrect sdp file detection
Last modified: 2009-07-29 05:43:02 UTC
some type some valid sdp file aren't detected as sdp by typefind. sdp files start by v=0[\r]\n pattern, the test of the pattern is not correctly done in gsttypefindfunctions.c sdp_check_header function.
Created attachment 139131 [details] [review] correction of sdp file detection
What would be examples where the that header check return FALSE although it is "v=0[\r]\n"? The current check is equivalent to (v=0\r\n) | (v=0\n) and your changes are equivalent to that too unless I'm missing something.
The current code doesn't work on v=0\r\n (I originally missed why too - try it on an actual test file). Benjamin's patch is correct; should be landed after the freeze lifts.
Heh, you're right :) I'll push this after freeze then :) commit 7468f6d7c573168f2c9e745cd1af2e6e38317d86 Author: Benjamin Gaignard <benjamin@gaignard.net> Date: Wed Jul 29 07:42:05 2009 +0200 typefindfunctions: Fix typefinding of SDP files Fixes bug #589574.