~ubuntu-branches/ubuntu/trusty/gstreamer1.0/trusty

« back to all changes in this revision

Viewing changes to gst/gstquery.c

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2012-09-14 09:04:41 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20120914090441-1ul912ezvm3xfael
Tags: 0.11.94-1
* New upstream release:
  + debian/libgstreamer.symbols:
    - Update symbols file.
  + debian/control.in:
    - Build-depend on gtk-doc >= 1.12.
  + debian/patches/0001-netclientclock-simplify-by-using-g_socket_condition_.patch:
    - Dropped, merged upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2096
2096
 *
2097
2097
 * Check if @query has scheduling mode set.
2098
2098
 *
 
2099
 * <note>
 
2100
 *   <para>
 
2101
 *     When checking if upstream supports pull mode, it is usually not
 
2102
 *     enough to just check for GST_PAD_MODE_PULL with this function, you
 
2103
 *     also want to check whether the scheduling flags returned by
 
2104
 *     gst_query_parse_scheduling() have the seeking flag set (meaning
 
2105
 *     random access is supported, not only sequential pulls).
 
2106
 *   </para>
 
2107
 * </note>
 
2108
 *
2099
2109
 * Returns: TRUE when @mode is in the list of scheduling modes.
2100
2110
 */
2101
2111
gboolean
2120
2130
}
2121
2131
 
2122
2132
/**
 
2133
 * gst_query_has_scheduling_mode_with_flags:
 
2134
 * @query: a GST_QUERY_SCHEDULING type query #GstQuery
 
2135
 * @mode: the scheduling mode
 
2136
 * @flags: #GstSchedulingFlags
 
2137
 *
 
2138
 * Check if @query has scheduling mode set and @flags is set in
 
2139
 * query scheduling flags.
 
2140
 *
 
2141
 * Returns: TRUE when @mode is in the list of scheduling modes
 
2142
 *    and @flags are compatible with query flags.
 
2143
 */
 
2144
gboolean
 
2145
gst_query_has_scheduling_mode_with_flags (GstQuery * query, GstPadMode mode,
 
2146
    GstSchedulingFlags flags)
 
2147
{
 
2148
  GstSchedulingFlags sched_flags;
 
2149
 
 
2150
  g_return_val_if_fail (GST_QUERY_TYPE (query) == GST_QUERY_SCHEDULING, FALSE);
 
2151
 
 
2152
  gst_query_parse_scheduling (query, &sched_flags, NULL, NULL, NULL);
 
2153
 
 
2154
  return ((flags & sched_flags) == flags) &&
 
2155
      gst_query_has_scheduling_mode (query, mode);
 
2156
}
 
2157
 
 
2158
/**
2123
2159
 * gst_query_new_accept_caps:
2124
2160
 * @caps: a fixed #GstCaps
2125
2161
 *