Change-Id: I8375dfb37774782e9cc9ebfcbfdc9c242c0dd2c2
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
if (sink->display->is_native_format == TRUE)
return FALSE;
- if (!gst_wl_window_is_toplevel (sink->window))
+ /* in case of using gst-launch, top level window is maded after propose allocation,
+ * so we can avoid allocating tbm memory of wayland when use app's window with normal video format */
+ if (G_UNLIKELY (sink->window))
return FALSE;
gst_query_parse_allocation (query, &caps, &need_pool);