gstpad: drop assertion on gst_pad_peer_query_position
authorThiago Santos <ts.santos@sisa.samsung.com>
Tue, 19 Nov 2013 14:41:54 +0000 (11:41 -0300)
committerThiago Santos <ts.santos@sisa.samsung.com>
Fri, 29 Nov 2013 18:03:44 +0000 (15:03 -0300)
It is a 'both' query, so it can be sent both ways

gst/gstutils.c

index 92cb30f..4e5f8b8 100644 (file)
@@ -2587,7 +2587,6 @@ gst_pad_peer_query_position (GstPad * pad, GstFormat format, gint64 * cur)
   gboolean ret = FALSE;
 
   g_return_val_if_fail (GST_IS_PAD (pad), FALSE);
-  g_return_val_if_fail (GST_PAD_IS_SINK (pad), FALSE);
   g_return_val_if_fail (format != GST_FORMAT_UNDEFINED, FALSE);
 
   query = gst_query_new_position (format);