[DeepStream 1.5 on TX2]Failed to create EGLImage from dma-buf fd

Referring to the gst-dsexample_sources, I had wrote a new detection plugin.

When I test the plugin,I got an error.

Setting pipeline to PAUSED …
------------> 0,0.0,1.0,0.0:1,0.0,1.0,1.0:2,0.0,0.0,1.0:3,1.0,1.0,0.0 -----------------
Pipeline is live and does not need PREROLL …
Setting pipeline to PLAYING …
New clock: GstSystemClock
Framerate set to : 10 at NvxVideoEncoderSetParameterNvMMLiteOpen : Block : BlockType = 4
===== MSENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
NvEGLImageFromFd: Failed to create EGLImage from dma-buf fd (1042)
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2948): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming task paused, reason error (-5)
Execution ended after 0:00:00.804343531
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …

The script I used for testing is shown as follows:
gst-launch-1.0
v4l2src device=/dev/video1 !
nvvidconv ! “video/x-raw(memory:NVMM),format=NV12” !
dsexample !
nvosd font-size=10 display-clock=1 !
tee name=t
t. ! queue !
nvvidconv ! “video/x-raw,format=I420” !
omxh264enc ! matroskamux !
multifilesink location=video%d.mkv

How do I modify the script or the program?
Thanks very much.