gst/audioscale/gstaudioscale.c: Don't crash, biatch! :).

Original commit message from CVS:
* gst/audioscale/gstaudioscale.c: (gst_audioscale_chain):
Don't crash, biatch! :).
This commit is contained in:
Ronald S. Bultje 2005-01-10 16:51:45 +00:00
parent 98a2f3f54b
commit f7b012fa2f
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
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:

View 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;