Original commit message from CVS:
* gst-libs/gst/audio/audio.c: (gst_audio_duration_from_pad_buffer):
* gst-libs/gst/audio/audio.h:
fix prototype - wondering why the test worked regardless
+2005-11-22 Thomas Vander Stichele <thomas at apestaart dot org>
+
+ * gst-libs/gst/audio/audio.c: (gst_audio_duration_from_pad_buffer):
+ * gst-libs/gst/audio/audio.h:
+ fix prototype - wondering why the test worked regardless
+
2005-11-21 Thomas Vander Stichele <thomas at apestaart dot org>
* check/Makefile.am:
return length;
}
-double
+GstClockTime
gst_audio_duration_from_pad_buffer (GstPad * pad, GstBuffer * buf)
{
/* calculate length in nanoseconds
g_assert (width != 0);
g_assert (channels != 0);
g_assert (rate != 0);
- length = (bytes * 8.0 * GST_SECOND) / (rate * channels * width);
+ length = (bytes * 8 * GST_SECOND) / (rate * channels * width);
}
- /* g_print ("DEBUG: audio: returning length of %f\n", length); */
return length;
}
/* calculate length in seconds of audio buffer buf based on caps of pad */
double gst_audio_length (GstPad* pad, GstBuffer* buf);
-double gst_audio_duration_from_pad_buffer (GstPad * pad, GstBuffer * buf);
+GstClockTime gst_audio_duration_from_pad_buffer (GstPad * pad, GstBuffer * buf);
/* calculate highest possible sample value based on capabilities of pad */
long gst_audio_highest_sample_value (GstPad* pad);