rtmp2: Only grab stats on close when connection exists
authorJan Alexander Steffens (heftig) <jsteffens@make.tv>
Tue, 3 Mar 2020 09:49:08 +0000 (10:49 +0100)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 3 Mar 2020 10:27:31 +0000 (10:27 +0000)
commite83888302d0716e1089a11475d964bac59229eb2
tree7850c2d99edec43e145a24a85b2d2283ec592fa8
parent3e2d86ea18bebf7dfa5e147135574592f952f5aa
rtmp2: Only grab stats on close when connection exists

If the connection attempt failed, self->connection is NULL.
gst/rtmp2/gstrtmp2sink.c
gst/rtmp2/gstrtmp2src.c