diff options
author | Rob Clark <rob@ti.com> | 2010-06-10 11:15:46 -0500 |
---|---|---|
committer | Rob Clark <rob@ti.com> | 2010-12-29 11:46:41 -0600 |
commit | bf885474891ce13331a082b46bdc5127ea871b04 (patch) | |
tree | 0d43a55f40e49a3efa1d7d32409c2977c07f229a /sys/v4l2/gstv4l2sink.c | |
parent | ff5494046afeb64d8cf7aaea1c58d07d7e480508 (diff) |
v4l2xoverlay: add support to create window
If xoverlay is available, v4l2sink should create a window for the overlay to
display in.
The window automatically tries to make itself as large as possible.
This works well on a small screen, but perhaps should first attempt to use
the size of the video that is played (no scaling).
Diffstat (limited to 'sys/v4l2/gstv4l2sink.c')
-rw-r--r-- | sys/v4l2/gstv4l2sink.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/v4l2/gstv4l2sink.c b/sys/v4l2/gstv4l2sink.c index 9679b26db..3de98512e 100644 --- a/sys/v4l2/gstv4l2sink.c +++ b/sys/v4l2/gstv4l2sink.c @@ -739,9 +739,7 @@ gst_v4l2sink_buffer_alloc (GstBaseSink * bsink, guint64 offset, guint size, gst_v4l2sink_sync_crop_fields (v4l2sink); #ifdef HAVE_XVIDEO - if (GST_V4L2_IS_OVERLAY (v4l2sink->v4l2object)) { - gst_x_overlay_prepare_xwindow_id (GST_X_OVERLAY (v4l2sink)); - } + gst_v4l2_xoverlay_prepare_xwindow_id (v4l2sink->v4l2object, TRUE); #endif v4l2sink->state = STATE_PENDING_STREAMON; |