mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +00:00
msdkbufferpool: Fix build warning on Windows
gstmsdkbufferpool.c(274): warning C4101: 'fd': unreferenced local variable
This commit is contained in:
parent
21a56b396c
commit
2e5fee17a3
1 changed files with 1 additions and 1 deletions
|
@ -271,7 +271,6 @@ gst_msdk_buffer_pool_acquire_buffer (GstBufferPool * pool,
|
||||||
GstBuffer *buf = NULL;
|
GstBuffer *buf = NULL;
|
||||||
GstFlowReturn ret;
|
GstFlowReturn ret;
|
||||||
mfxFrameSurface1 *surface;
|
mfxFrameSurface1 *surface;
|
||||||
gint fd;
|
|
||||||
|
|
||||||
ret =
|
ret =
|
||||||
GST_BUFFER_POOL_CLASS (parent_class)->acquire_buffer (pool, &buf, params);
|
GST_BUFFER_POOL_CLASS (parent_class)->acquire_buffer (pool, &buf, params);
|
||||||
|
@ -302,6 +301,7 @@ gst_msdk_buffer_pool_acquire_buffer (GstBufferPool * pool,
|
||||||
* between surface and memory.
|
* between surface and memory.
|
||||||
*/
|
*/
|
||||||
if (priv->memory_type == GST_MSDK_MEMORY_TYPE_DMABUF) {
|
if (priv->memory_type == GST_MSDK_MEMORY_TYPE_DMABUF) {
|
||||||
|
gint fd;
|
||||||
surface = gst_msdk_get_surface_from_buffer (buf);
|
surface = gst_msdk_get_surface_from_buffer (buf);
|
||||||
gst_msdk_get_dmabuf_info_from_surface (surface, &fd, NULL);
|
gst_msdk_get_dmabuf_info_from_surface (surface, &fd, NULL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue