diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2011-11-15 18:01:16 +0100 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2011-11-15 18:04:44 +0100 |
commit | e7918a5aba38bb306ac0f2dab4f4a15fdf0bb629 (patch) | |
tree | 2ccf50f6d3adfcd3a8ea60affc5d9d0168abcdbb /ext/flac/gstflacenc.c | |
parent | 04579335c41be41cec9f644239ec4ac91de206b6 (diff) | |
download | gstreamer-plugins-good-e7918a5aba38bb306ac0f2dab4f4a15fdf0bb629.tar.gz |
_query_peer_*() -> _peer_query_*()
Diffstat (limited to 'ext/flac/gstflacenc.c')
-rw-r--r-- | ext/flac/gstflacenc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/flac/gstflacenc.c b/ext/flac/gstflacenc.c index 7143945c9..1ab39d7df 100644 --- a/ext/flac/gstflacenc.c +++ b/ext/flac/gstflacenc.c @@ -719,18 +719,18 @@ gst_flac_enc_getcaps (GstAudioEncoder * enc, GstCaps * filter) } static guint64 -gst_flac_enc_query_peer_total_samples (GstFlacEnc * flacenc, GstPad * pad) +gst_flac_enc_peer_query_total_samples (GstFlacEnc * flacenc, GstPad * pad) { gint64 duration; GST_DEBUG_OBJECT (flacenc, "querying peer for DEFAULT format duration"); - if (gst_pad_query_peer_duration (pad, GST_FORMAT_DEFAULT, &duration) + if (gst_pad_peer_query_duration (pad, GST_FORMAT_DEFAULT, &duration) && duration != GST_CLOCK_TIME_NONE) goto done; GST_DEBUG_OBJECT (flacenc, "querying peer for TIME format duration"); - if (gst_pad_query_peer_duration (pad, GST_FORMAT_TIME, &duration) + if (gst_pad_peer_query_duration (pad, GST_FORMAT_TIME, &duration) && duration != GST_CLOCK_TIME_NONE) { GST_DEBUG_OBJECT (flacenc, "peer reported duration %" GST_TIME_FORMAT, GST_TIME_ARGS (duration)); @@ -778,7 +778,7 @@ gst_flac_enc_set_format (GstAudioEncoder * enc, GstAudioInfo * info) gst_caps_unref (caps); - total_samples = gst_flac_enc_query_peer_total_samples (flacenc, + total_samples = gst_flac_enc_peer_query_total_samples (flacenc, GST_AUDIO_ENCODER_SINK_PAD (enc)); FLAC__stream_encoder_set_bits_per_sample (flacenc->encoder, flacenc->depth); |