gst/audioscale/gstaudioscale.c: Don't crash, biatch! :).
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>
Mon, 10 Jan 2005 16:51:45 +0000 (16:51 +0000)
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>
Mon, 10 Jan 2005 16:51:45 +0000 (16:51 +0000)
Original commit message from CVS:
* gst/audioscale/gstaudioscale.c: (gst_audioscale_chain):
Don't crash, biatch! :).

ChangeLog
gst/audioscale/gstaudioscale.c

index f80853a..e1e353d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2005-01-10  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
 
+       * gst/audioscale/gstaudioscale.c: (gst_audioscale_chain):
+         Don't crash, biatch! :).
+
+2005-01-10  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
+
        * ext/musepack/gstmusepackreader.cpp:
        * gst/apetag/apedemux.c: (gst_ape_demux_stream_data):
          Some work on tags - still doesn't work in playbin...
index 5c9a12d..220d6b3 100644 (file)
@@ -597,7 +597,7 @@ gst_audioscale_chain (GstPad * pad, GstData * _data)
         break;
     }
     return;
-  } else if (GST_BUFFER_TIMESTAMP_IS_VALID (buf)) {
+  } else if (GST_BUFFER_TIMESTAMP_IS_VALID (buf) && audioscale->gst_resample) {
     /* update time for out-sample */
     audioscale->gst_resample_offset = GST_BUFFER_TIMESTAMP (buf) *
         audioscale->gst_resample->o_rate / GST_SECOND;