audio{de,en}coder: use GstClockTime parameters where appropriate

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=683672
This commit is contained in:
Mark Nauwelaerts 2012-09-10 11:20:34 +02:00
parent 5101adf740
commit a29fab200c
4 changed files with 15 additions and 15 deletions

View file

@ -2696,7 +2696,7 @@ gst_audio_decoder_get_plc (GstAudioDecoder * dec)
* MT safe.
*/
void
gst_audio_decoder_set_min_latency (GstAudioDecoder * dec, gint64 num)
gst_audio_decoder_set_min_latency (GstAudioDecoder * dec, GstClockTime num)
{
g_return_if_fail (GST_IS_AUDIO_DECODER (dec));
@ -2715,10 +2715,10 @@ gst_audio_decoder_set_min_latency (GstAudioDecoder * dec, gint64 num)
*
* MT safe.
*/
gint64
GstClockTime
gst_audio_decoder_get_min_latency (GstAudioDecoder * dec)
{
gint64 result;
GstClockTime result;
g_return_val_if_fail (GST_IS_AUDIO_DECODER (dec), FALSE);
@ -2739,7 +2739,7 @@ gst_audio_decoder_get_min_latency (GstAudioDecoder * dec)
* MT safe.
*/
void
gst_audio_decoder_set_tolerance (GstAudioDecoder * dec, gint64 tolerance)
gst_audio_decoder_set_tolerance (GstAudioDecoder * dec, GstClockTime tolerance)
{
g_return_if_fail (GST_IS_AUDIO_DECODER (dec));
@ -2758,10 +2758,10 @@ gst_audio_decoder_set_tolerance (GstAudioDecoder * dec, gint64 tolerance)
*
* MT safe.
*/
gint64
GstClockTime
gst_audio_decoder_get_tolerance (GstAudioDecoder * dec)
{
gint64 result;
GstClockTime result;
g_return_val_if_fail (GST_IS_AUDIO_DECODER (dec), 0);

View file

@ -325,14 +325,14 @@ void gst_audio_decoder_set_plc (GstAudioDecoder * dec,
gboolean gst_audio_decoder_get_plc (GstAudioDecoder * dec);
void gst_audio_decoder_set_min_latency (GstAudioDecoder * dec,
gint64 num);
GstClockTime num);
gint64 gst_audio_decoder_get_min_latency (GstAudioDecoder * dec);
GstClockTime gst_audio_decoder_get_min_latency (GstAudioDecoder * dec);
void gst_audio_decoder_set_tolerance (GstAudioDecoder * dec,
gint64 tolerance);
GstClockTime tolerance);
gint64 gst_audio_decoder_get_tolerance (GstAudioDecoder * dec);
GstClockTime gst_audio_decoder_get_tolerance (GstAudioDecoder * dec);
void gst_audio_decoder_set_drainable (GstAudioDecoder * dec,
gboolean enabled);

View file

@ -2360,7 +2360,7 @@ gst_audio_encoder_get_hard_resync (GstAudioEncoder * enc)
* MT safe.
*/
void
gst_audio_encoder_set_tolerance (GstAudioEncoder * enc, gint64 tolerance)
gst_audio_encoder_set_tolerance (GstAudioEncoder * enc, GstClockTime tolerance)
{
g_return_if_fail (GST_IS_AUDIO_ENCODER (enc));
@ -2379,10 +2379,10 @@ gst_audio_encoder_set_tolerance (GstAudioEncoder * enc, gint64 tolerance)
*
* MT safe.
*/
gint64
GstClockTime
gst_audio_encoder_get_tolerance (GstAudioEncoder * enc)
{
gint64 result;
GstClockTime result;
g_return_val_if_fail (GST_IS_AUDIO_ENCODER (enc), 0);

View file

@ -279,9 +279,9 @@ void gst_audio_encoder_set_hard_resync (GstAudioEncoder * enc,
gboolean gst_audio_encoder_get_hard_resync (GstAudioEncoder * enc);
void gst_audio_encoder_set_tolerance (GstAudioEncoder * enc,
gint64 tolerance);
GstClockTime tolerance);
gint64 gst_audio_encoder_get_tolerance (GstAudioEncoder * enc);
GstClockTime gst_audio_encoder_get_tolerance (GstAudioEncoder * enc);
void gst_audio_encoder_set_hard_min (GstAudioEncoder * enc,
gboolean enabled);