ext/theora/theoradec.c: Don't try to do anything fancy with the return code from...
authorWim Taymans <wim.taymans@gmail.com>
Thu, 3 Apr 2008 10:22:33 +0000 (10:22 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Thu, 3 Apr 2008 10:22:33 +0000 (10:22 +0000)
Original commit message from CVS:
* ext/theora/theoradec.c: (theora_handle_type_packet),
(theora_dec_chain):
Don't try to do anything fancy with the return code from pushing an
event, it does not have enough information to turn it into a
GST_FLOW_ERROR.

ChangeLog
ext/theora/theoradec.c

index b1e1bbc..3402fd5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2008-04-03  Wim Taymans  <wim.taymans@collabora.co.uk>
 
+       * ext/theora/theoradec.c: (theora_handle_type_packet),
+       (theora_dec_chain):
+       Don't try to do anything fancy with the return code from pushing an
+       event, it does not have enough information to turn it into a
+       GST_FLOW_ERROR.
+
+2008-04-03  Wim Taymans  <wim.taymans@collabora.co.uk>
+
        * ext/ogg/gstoggdemux.c: (gst_ogg_pad_reset),
        (gst_ogg_demux_chain_elem_pad):
        Add small debug line.
index da9680d..5581fc7 100644 (file)
@@ -866,8 +866,6 @@ theora_handle_type_packet (GstTheoraDec * dec, ogg_packet * packet)
         dec->segment.format, dec->segment.start, dec->segment.stop,
         dec->segment.time);
     eret = gst_pad_push_event (dec->srcpad, event);
-    if (!eret)
-      ret = GST_FLOW_ERROR;
     dec->sent_newsegment = TRUE;
   }
 
@@ -1451,7 +1449,7 @@ theora_dec_chain (GstPad * pad, GstBuffer * buf)
   dec = GST_THEORA_DEC (gst_pad_get_parent (pad));
 
   /* peel of DISCONT flag */
-  discont = GST_BUFFER_FLAG_IS_SET (buf, GST_BUFFER_FLAG_DISCONT);
+  discont = GST_BUFFER_IS_DISCONT (buf);
 
   /* resync on DISCONT */
   if (G_UNLIKELY (discont)) {