780
* gst_collect_pads_is_active:
781
* @pads: the collectspads to use
782
* @pad: the pad to check
784
* Check if a pad is active.
786
* This function is currently not implemented.
790
* Returns: %TRUE if the pad is active.
795
gst_collect_pads_is_active (GstCollectPads * pads, GstPad * pad)
797
g_return_val_if_fail (pads != NULL, FALSE);
798
g_return_val_if_fail (GST_IS_COLLECT_PADS (pads), FALSE);
799
g_return_val_if_fail (pad != NULL, FALSE);
800
g_return_val_if_fail (GST_IS_PAD (pad), FALSE);
802
g_warning ("gst_collect_pads_is_active() is not implemented");
808
* gst_collect_pads_collect:
809
* @pads: the collectspads to use
811
* Collect data on all pads. This function is usually called
812
* from a #GstTask function in an element.
814
* This function is currently not implemented.
818
* Returns: #GstFlowReturn of the operation.
823
gst_collect_pads_collect (GstCollectPads * pads)
825
g_return_val_if_fail (pads != NULL, GST_FLOW_ERROR);
826
g_return_val_if_fail (GST_IS_COLLECT_PADS (pads), GST_FLOW_ERROR);
828
g_warning ("gst_collect_pads_collect() is not implemented");
830
return GST_FLOW_NOT_SUPPORTED;
834
* gst_collect_pads_collect_range:
835
* @pads: the collectspads to use
836
* @offset: the offset to collect
837
* @length: the length to collect
839
* Collect data with @offset and @length on all pads. This function
840
* is typically called in the getrange function of an element.
842
* This function is currently not implemented.
846
* Returns: #GstFlowReturn of the operation.
851
gst_collect_pads_collect_range (GstCollectPads * pads, guint64 offset,
854
g_return_val_if_fail (pads != NULL, GST_FLOW_ERROR);
855
g_return_val_if_fail (GST_IS_COLLECT_PADS (pads), GST_FLOW_ERROR);
857
g_warning ("gst_collect_pads_collect_range() is not implemented");
859
return GST_FLOW_NOT_SUPPORTED;
863
758
* Must be called with STREAM_LOCK.
1013
902
unref_data (pads->priv->earliest_data);
1014
903
pads->priv->earliest_data = NULL;
1015
904
pads->priv->earliest_time = GST_CLOCK_TIME_NONE;
905
pads->priv->stream_started = FALSE;
1017
907
GST_OBJECT_UNLOCK (pads);
1018
908
/* Wake them up so they can end the chain functions. */
1123
1009
* Returns: The maximum number of bytes queued on all pads. This function
1124
1010
* returns 0 if a pad has no queued buffer.
1128
1012
/* we might pre-calculate this in some struct field,
1129
1013
* but would then have to maintain this in _chain and particularly _pop, etc,
1697
1571
* Default GstCollectPads event handling that elements should always
1698
1572
* chain up to to ensure proper operation. Element might however indicate
1699
1573
* event should not be forwarded downstream.
1704
1576
gst_collect_pads_event_default (GstCollectPads * pads, GstCollectData * data,
1837
1709
* accumulated and this is certainly not what we want. */
1712
case GST_EVENT_STREAM_START:
1713
/* let the only the first one go through */
1714
if (!pads->priv->stream_started) {
1715
pads->priv->stream_started = TRUE;
1840
1721
case GST_EVENT_CAPS:
1841
case GST_EVENT_STREAM_START:
1842
1722
case GST_EVENT_STREAM_CONFIG:
1928
1808
* Default GstCollectPads query handling that elements should always
1929
1809
* chain up to to ensure proper operation. Element might however indicate
1930
1810
* query should not be forwarded downstream.
1935
1813
gst_collect_pads_query_default (GstCollectPads * pads, GstCollectData * data,