splitmuxsink: Don't send fragment-opened-closed message if the reference ctx is NULL
authorVivia Nikolaidou <vivia@ahiru.eu>
Wed, 11 Apr 2018 14:54:38 +0000 (17:54 +0300)
committerVivia Nikolaidou <vivia@ahiru.eu>
Wed, 11 Apr 2018 14:59:21 +0000 (17:59 +0300)
commit7d7c90bf5cecd3eb06122d10c572ca605c07d574
tree5f7f0c893d064c70b146bda7c28b8d08b7a93b0a
parent6d7242925be529ac8047a7b49758cc9731adc10a
splitmuxsink: Don't send fragment-opened-closed message if the reference ctx is NULL

It can happen during teardown that the reference context becomes NULL.
In that case, trying to send the fragment-opened-closed message would
lead to a crash.
gst/multifile/gstsplitmuxsink.c