# HG changeset patch
# User renatofilho
# Date 1163774798 0
# Node ID e594fc21deef37b8da9394f66b6ff5fa5e022ecd
# Parent  6b1e210c250abbf41950faa4e8f9275a67cdeeeb
[svn r93] included warning message for unsupported formats

diff -r 6b1e210c250a -r e594fc21deef gst-plugins-nuvdemux/nuvdemux/gstnuvdemux.c
--- a/gst-plugins-nuvdemux/nuvdemux/gstnuvdemux.c	Fri Nov 17 13:18:48 2006 +0000
+++ b/gst-plugins-nuvdemux/nuvdemux/gstnuvdemux.c	Fri Nov 17 14:46:38 2006 +0000
@@ -730,9 +730,6 @@
 
       GST_BUFFER_SIZE (buf) = h->i_length;
       GST_BUFFER_TIMESTAMP (buf) = timestamp;
-
-      if ((h->i_type == 'V') || (h->i_type == 'A')) {
-      }
   }
   else {
     goto done;
@@ -871,7 +868,8 @@
 
   if (h->i_type != 'D') {
     g_free (h);
-    return GST_FLOW_ERROR;
+    GST_WARNING_OBJECT (nuv, "Unsuported rtjpeg");
+    return GST_FLOW_NOT_SUPPORTED;
   }
 
   if (h->i_length > 0) {
@@ -879,7 +877,8 @@
       nuv->priv->state = GST_NUV_DEMUX_MPEG_DATA;
     } else {
       g_free (h);
-      return GST_FLOW_ERROR;
+      GST_WARNING_OBJECT (nuv, "only file with extended chunk are supported");
+      return GST_FLOW_NOT_SUPPORTED;
     }
   } else {
     nuv->priv->state = GST_NUV_DEMUX_EXTEND_HEADER;