H.265 10-bit video glitch

When gst-playing it, it works flawlessly, but if I craft a gst-launch line, the video appears glitchy, and only a quarter of the video plays correctly, and the rest of the video is green.

The gst-play graphviz is attached as play.png

The gst-launch graphviz is attached as launch.png

the gst-launch line is:

gst-launch-1.0 rtspsrc location="rtsp://[](" ! rtph265depay ! "video/x-h265,stream-format=byte-stream,alignment=nal" ! h265parse ! "video/x-h265,profile=main-10,chroma-format=\"4:2:0\",bit-depth-chroma=10,bit-depth-luma=10" ! nvh265dec ! videoconvert ! xvimagesink

As you can see in the attachments, on the launch graph, h265parse detects the stream as 8 bit luma and chroma, despite the video being 10bit. However, gst-play also uses h265parse, but it correctly detects 10bit luma/chroma.

Any clue?