After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 750387 - rtspsrc: No way for app to send TEARDOWN msg when closing.
rtspsrc: No way for app to send TEARDOWN msg when closing.
Status: RESOLVED DUPLICATE of bug 748360
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other All
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-06-04 09:57 UTC by Hyunjun Ko
Modified: 2015-07-06 07:20 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Hyunjun Ko 2015-06-04 09:57:16 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.
Comment 1 Sebastian Dröge (slomo) 2015-07-06 07:20:38 UTC
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 ***