gst_pad_query_position
gst_pad_query_duration
gst_pad_query_convert
-gst_pad_query_peer_position
-gst_pad_query_peer_duration
-gst_pad_query_peer_convert
+gst_pad_peer_query_position
+gst_pad_peer_query_duration
+gst_pad_peer_query_convert
gst_pad_set_query_function
GstPadQueryFunction
gst_pad_set_iterate_internal_links_function
}
/**
- * gst_pad_query_peer_position:
+ * gst_pad_peer_query_position:
* @pad: a #GstPad on whose peer to invoke the position query on.
* Must be a sink pad.
* @format: the #GstFormat requested
* Returns: TRUE if the query could be performed.
*/
gboolean
-gst_pad_query_peer_position (GstPad * pad, GstFormat format, gint64 * cur)
+gst_pad_peer_query_position (GstPad * pad, GstFormat format, gint64 * cur)
{
GstQuery *query;
gboolean ret = FALSE;
}
/**
- * gst_pad_query_peer_duration:
+ * gst_pad_peer_query_duration:
* @pad: a #GstPad on whose peer pad to invoke the duration query on.
* Must be a sink pad.
* @format: the #GstFormat requested
* Returns: TRUE if the query could be performed.
*/
gboolean
-gst_pad_query_peer_duration (GstPad * pad, GstFormat format, gint64 * duration)
+gst_pad_peer_query_duration (GstPad * pad, GstFormat format, gint64 * duration)
{
GstQuery *query;
gboolean ret = FALSE;
}
/**
- * gst_pad_query_peer_convert:
+ * gst_pad_peer_query_convert:
* @pad: a #GstPad, on whose peer pad to invoke the convert query on.
* Must be a sink pad.
* @src_format: a #GstFormat to convert from.
* Returns: TRUE if the query could be performed.
*/
gboolean
-gst_pad_query_peer_convert (GstPad * pad, GstFormat src_format, gint64 src_val,
+gst_pad_peer_query_convert (GstPad * pad, GstFormat src_format, gint64 src_val,
GstFormat dest_format, gint64 * dest_val)
{
GstQuery *query;
gboolean gst_pad_query_convert (GstPad *pad, GstFormat src_format, gint64 src_val,
GstFormat dest_format, gint64 *dest_val);
-gboolean gst_pad_query_peer_position (GstPad *pad, GstFormat format, gint64 *cur);
-gboolean gst_pad_query_peer_duration (GstPad *pad, GstFormat format, gint64 *duration);
-gboolean gst_pad_query_peer_convert (GstPad *pad, GstFormat src_format, gint64 src_val,
+gboolean gst_pad_peer_query_position (GstPad *pad, GstFormat format, gint64 *cur);
+gboolean gst_pad_peer_query_duration (GstPad *pad, GstFormat format, gint64 *duration);
+gboolean gst_pad_peer_query_convert (GstPad *pad, GstFormat src_format, gint64 src_val,
GstFormat dest_format, gint64 *dest_val);
/* bin functions */
/* try harder to query upstream size if we didn't get it the first time */
if (seekable && stop == -1) {
GST_DEBUG_OBJECT (parse, "doing duration query to fix up unset stop");
- gst_pad_query_peer_duration (parse->sinkpad, GST_FORMAT_BYTES, &stop);
+ gst_pad_peer_query_duration (parse->sinkpad, GST_FORMAT_BYTES, &stop);
}
/* if upstream doesn't know the size, it's likely that it's not seekable in
{
gint64 stop;
- if (gst_pad_query_peer_duration (parse->sinkpad, GST_FORMAT_TIME, &stop))
+ if (gst_pad_peer_query_duration (parse->sinkpad, GST_FORMAT_TIME, &stop))
if (GST_CLOCK_TIME_IS_VALID (stop) && stop) {
/* upstream has one, accept it also, and no further updates */
gst_base_parse_set_duration (parse, GST_FORMAT_TIME, stop, 0);
GST_OBJECT_UNLOCK (basesink);
/* get the peer duration in bytes */
- result = gst_pad_query_peer_duration (pad, GST_FORMAT_BYTES, &duration);
+ result = gst_pad_peer_query_duration (pad, GST_FORMAT_BYTES, &duration);
if (result) {
GST_DEBUG_OBJECT (basesink,
"setting duration in bytes to %" G_GINT64_FORMAT, duration);
* using our cached value because it might change. Duration caching
* should be done at a higher level. */
res =
- gst_pad_query_peer_duration (basesink->sinkpad, GST_FORMAT_BYTES,
+ gst_pad_peer_query_duration (basesink->sinkpad, GST_FORMAT_BYTES,
&uduration);
if (res) {
basesink->segment.duration = uduration;
&upstream);
if (!res && upstream) {
res =
- gst_pad_query_peer_position (basesink->sinkpad, GST_FORMAT_TIME,
+ gst_pad_peer_query_position (basesink->sinkpad, GST_FORMAT_TIME,
&cur);
}
if (res) {
&upstream);
if (!res && upstream) {
res =
- gst_pad_query_peer_duration (basesink->sinkpad,
+ gst_pad_peer_query_duration (basesink->sinkpad,
GST_FORMAT_TIME, &dur);
}
}
mode = GST_BUFFERING_DOWNLOAD;
if (queue->byte_in_rate > 0) {
- if (gst_pad_query_peer_duration (queue->sinkpad, GST_FORMAT_BYTES,
+ if (gst_pad_peer_query_duration (queue->sinkpad, GST_FORMAT_BYTES,
&duration)) {
buffering_left =
(gdouble) ((duration -
duration = writing_pos;
} else {
/* get duration of upstream in bytes */
- peer_res = gst_pad_query_peer_duration (queue->sinkpad,
+ peer_res = gst_pad_peer_query_duration (queue->sinkpad,
GST_FORMAT_BYTES, &duration);
}
{
gint64 upstream_size = -1;
- if (gst_pad_query_peer_duration (queue->sinkpad, GST_FORMAT_BYTES,
+ if (gst_pad_peer_query_duration (queue->sinkpad, GST_FORMAT_BYTES,
&upstream_size)) {
GST_INFO_OBJECT (queue, "upstream size: %" G_GINT64_FORMAT, upstream_size);
queue->upstream_size = upstream_size;