avwait: Fix crash when explicitly setting end_tc to NULL
authorVivia Nikolaidou <vivia@ahiru.eu>
Tue, 7 Nov 2017 19:03:22 +0000 (21:03 +0200)
committerVivia Nikolaidou <vivia@ahiru.eu>
Tue, 7 Nov 2017 19:03:22 +0000 (21:03 +0200)
commit503403ff0a540cfddd3296568cfc49fe34766d6b
treeba2f3eaf62d63bda10f77a4191af6601de71c1e9
parent6552981b795a024d26bf509893d55970c2294c04
avwait: Fix crash when explicitly setting end_tc to NULL

If end_tc is NULL, it means that we don't want avwait to stop at any
timecode. When explicitly setting end_tc to NULL, there is no point in
comparing end_tc with start_tc (to see if we'll reject end_tc for being
before start_tc), so the check in question is completely disabled
instead of letting it crash.
gst/timecode/gstavwait.c