typefinding: stop jpeg typefinding once we found a SOF marker
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 5 Jun 2010 17:14:38 +0000 (18:14 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 5 Jun 2010 17:25:51 +0000 (18:25 +0100)
gst/typefind/gsttypefindfunctions.c

index 5f4659f..bbb6032 100644 (file)
@@ -2673,6 +2673,7 @@ jpeg_type_find (GstTypeFind * tf, gpointer unused)
 
       gst_caps_set_simple (caps, "width", G_TYPE_INT, w,
           "height", G_TYPE_INT, h, NULL);
+      break;
     } else {
       GST_WARNING ("bad length or unexpected JPEG marker 0xff 0x%02x", marker);
       break;