--- /home/silentm/Development/GStreamer/gst-plugins-good/gst/rtp/gstrtpjpegpay.c	2011-08-22 09:46:07.532045208 -0400
+++ /home/silentm/Development/GStreamer/gst-plugins-good-patched/gst/rtp/gstrtpjpegpay.c	2011-08-22 14:32:56.491213925 -0400
@@ -666,8 +666,7 @@
         jpeg_header_size = offset + gst_rtp_jpeg_pay_header_size (data, offset);
         break;
       case JPEG_MARKER_EOI:
-        GST_WARNING_OBJECT (pay, "EOI reached before SOS!");
-        break;
+        goto eoi;
       case JPEG_MARKER_SOI:
         GST_LOG_OBJECT (pay, "SOI found");
         break;
@@ -848,6 +847,12 @@
 
   return ret;
 
+eoi:
+
+  gst_buffer_unref (buffer);
+
+  return ret;
+
   /* ERRORS */
 unsupported_jpeg:
   {
