typefindfunctions: Fix typefinding of SDP files
authorBenjamin Gaignard <benjamin@gaignard.net>
Wed, 29 Jul 2009 05:42:05 +0000 (07:42 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 6 Aug 2009 04:43:33 +0000 (06:43 +0200)
Fixes bug #589574.

gst/typefind/gsttypefindfunctions.c

index be7371a..73be058 100644 (file)
@@ -343,12 +343,12 @@ sdp_check_header (GstTypeFind * tf)
   if (memcmp (data, "v=0", 3))
     return FALSE;
 
-  if (data[3] == '\r' && data[4] != '\n')
-    return FALSE;
-  if (data[3] != '\n')
-    return FALSE;
+  if (data[3] == '\r' && data[4] == '\n')
+    return TRUE;
+  if (data[3] == '\n')
+    return TRUE;
 
-  return TRUE;
+  return FALSE;
 }
 
 static void