Freescale / gstreamer-imx

GStreamer 1.0 plugins for i.MX platforms
Other
183 stars 127 forks source link

'GST_IS_BUFFER_POOL (pool)' failed with imxipuvideotransform connected to imxv4l2videosrc #275

Closed ukaiser closed 3 years ago

ukaiser commented 3 years ago

If I compose a pipeline putting together imxv4l2videosrc and imxipuvideotransform elements, I get the following errors

(gst-launch-1.0:1026): GStreamer-CRITICAL **: 14:23:47.281: gst_buffer_pool_has_option: assertion 'GST_IS_BUFFER_POOL (pool)' failed

(gst-launch-1.0:1026): GStreamer-CRITICAL **: 14:23:47.281: gst_object_unref: assertion 'object != NULL' failed

example pipeline:

imxv4l2videosrc name=primary device=/dev/video0 imx-capture-mode=0 \ ! imxipuvideotransform output-rotation=2 \ ! tee name=tee ! queue name=primary-vf-queue max-size-buffers=3 leaky=downstream \ ! imxg2dvideosink name=display-sink framebuffer=/dev/fb1 \ window-y-coord=0 window-x-coord=0 window-width=1200 window-height=1600 \ output-rotation=1 force-aspect-ratio=false use-vsync=true clear-at-null=true

Without the " ! imxipuvideotransform output-rotation=2 \" the error is not shown.

The pipeline shows an image on the screen with or without the error, even the rotation works. But if I connect a new bin, to store an image, to the tee, I get the following error:

ERROR:../git/src/ipu/allocator.c:104:gst_imx_ipu_map_phys_mem: assertion failed: (phys_mem->mapped_virt_addr == NULL)

I'm using the latest versions of gstreamer-imx plugins: 0.13.1 Gstreamer version is 1.14.0 I`m using an IMX 6 dual with linux 4.9.184

I tried adding the changes from #183, but the gst_imx_ipu_map_phys_mem: assertion failed anyway