Commit a29fab20 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts

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

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=683672
parent 5101adf7
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment