mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
osxvideosink: advertize video meta API support
https://bugzilla.gnome.org/show_bug.cgi?id=726737
This commit is contained in:
parent
9859515605
commit
c6dcd3689d
1 changed files with 9 additions and 0 deletions
|
@ -511,6 +511,14 @@ gst_osx_video_sink_get_property (GObject * object, guint prop_id,
|
|||
}
|
||||
}
|
||||
|
||||
static gboolean
|
||||
gst_osx_video_sink_propose_allocation (GstBaseSink * base_sink, GstQuery * query)
|
||||
{
|
||||
gst_query_add_allocation_meta (query,
|
||||
GST_VIDEO_META_API_TYPE, NULL);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static void
|
||||
gst_osx_video_sink_init (GstOSXVideoSink * sink)
|
||||
|
@ -572,6 +580,7 @@ gst_osx_video_sink_class_init (GstOSXVideoSinkClass * klass)
|
|||
gstbasesink_class->set_caps = gst_osx_video_sink_setcaps;
|
||||
gstbasesink_class->preroll = gst_osx_video_sink_show_frame;
|
||||
gstbasesink_class->render = gst_osx_video_sink_show_frame;
|
||||
gstbasesink_class->propose_allocation = gst_osx_video_sink_propose_allocation;
|
||||
gstelement_class->change_state = gst_osx_video_sink_change_state;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue