[Bug 773261] gstplayer: Add some gstplayer API

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Oct 28 08:19:54 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=773261

--- Comment #15 from Lyon <lyon.wang at nxp.com> ---
Hi, slomo
  I have some more question about gstplayer video render API when I was trying
to implement set video sink API in video render.

I see there is an API "GstElement *
gst_player_video_renderer_create_video_sink(render, player)" 

Is the purpose of this API to create a video-sink which can be set to playbin ?
However, when I check the definition of this function, it will invoke function
pointer iface->create_video_sink, and the realization in
gstplayer-video-overlay-video-renderer.c is function
gst_player_video_overlay_video_renderer_create_video_sink(), but this function
actually just get the pipeline and set the renderer overlay , hen set window
handler and render rectangle, then just return NULL. 
I am a little bit confused, should it return some video-sink element to be set
to playbin ?

Or shall there be another approach that we can use video-sink name to set to
the renderer's video_overlay like below?
  video_sink = gst_parse_bin_from_description(options.video_sink_name, TRUE,
NULL); 
gst_player_video_overlay_video_renderer_set_overlay(GST_PLAYER_VIDEO_OVERLAY_VIDEO_RENDERER(renderer),
GST_VIDEO_OVERLAY(video_sink));

looking forward to your comments

Thanks
Lyon

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list