x11: let upstream know we support cropping
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 23 Jun 2011 14:31:21 +0000 (16:31 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 23 Jun 2011 14:31:21 +0000 (16:31 +0200)
sys/ximage/ximagesink.c
sys/xvimage/xvimagesink.c

index 87d0059..8186788 100644 (file)
@@ -1489,6 +1489,7 @@ gst_ximagesink_sink_query (GstPad * sinkpad, GstQuery * query)
 
       /* we also support various metadata */
       gst_query_add_allocation_meta (query, GST_META_API_VIDEO);
+      gst_query_add_allocation_meta (query, GST_META_API_VIDEO_CROP);
 
       gst_object_unref (pool);
       break;
index 8b12b75..938e349 100644 (file)
@@ -2004,6 +2004,7 @@ gst_xvimagesink_sink_query (GstPad * sinkpad, GstQuery * query)
 
       /* we also support various metadata */
       gst_query_add_allocation_meta (query, GST_META_API_VIDEO);
+      gst_query_add_allocation_meta (query, GST_META_API_VIDEO_CROP);
 
       gst_object_unref (pool);
       break;