GNOME Bugzilla – Bug 750387
rtspsrc: No way for app to send TEARDOWN msg when closing.
Last modified: 2015-07-06 07:20:38 UTC
CMD_CLOSE is never being handled in the rtspsrc_thread. 1. case GST_STATE_CHANGE_PAUSED_TO_READY: gst_rtspsrc_loop_send_cmd (rtspsrc, CMD_CLOSE, CMD_PAUSE); This code can't interrupt thread, which is listening with CMD_LOOP. 2.Even though #1 could interrupt by a little bit of modification: When gst_rtspsrc_loop is paused by interrupt, it always calls gst_rtspsrc_loop_send_cmd (src, CMD_WAIT, CMD_LOOP), which means that CMD_CLOSE is always swallowed. IMHO, it needs to be fixed. Actually, I'm working on this, but I want to hear some advice for this issue, if this is real problem or not.
Thanks for taking the time to report this. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of bug 748360 ***