ext/vorbis/vorbisdec.c: Still produce an error when we receive an empty packet.
authorWim Taymans <wim.taymans@gmail.com>
Wed, 3 May 2006 15:52:46 +0000 (15:52 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Wed, 3 May 2006 15:52:46 +0000 (15:52 +0000)
Original commit message from CVS:
* ext/vorbis/vorbisdec.c: (vorbis_dec_sink_event),
(vorbis_dec_push), (vorbis_dec_chain):
Still produce an error when we receive an empty packet.

ChangeLog
ext/vorbis/vorbisdec.c

index 487364c..2d727e4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2006-05-03  Wim Taymans  <wim@fluendo.com>
 
+       * ext/vorbis/vorbisdec.c: (vorbis_dec_sink_event),
+       (vorbis_dec_push), (vorbis_dec_chain):
+       Still produce an error when we receive an empty packet.
+
+2006-05-03  Wim Taymans  <wim@fluendo.com>
+
        * ext/ogg/gstoggdemux.c: (gst_ogg_demux_chain_peer),
        (gst_ogg_chain_mark_discont), (gst_ogg_chain_new_stream),
        (gst_ogg_demux_activate_chain), (gst_ogg_demux_perform_seek):
index af28a6d..7f91bbe 100644 (file)
@@ -914,8 +914,8 @@ done:
   /* ERRORS */
 wrong_size:
   {
-    GST_WARNING_OBJECT (vd, "received empty packet");
-    result = GST_FLOW_OK;
+    GST_ELEMENT_ERROR (vd, STREAM, DECODE, (NULL), ("empty buffer received"));
+    result = GST_FLOW_ERROR;
     vd->discont = TRUE;
     goto done;
   }