[Bug 729099] rtmpsrc: Crash due to unsafe thread handling in librtmp when setting state from PLAYING->PAUSED
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Tue Mar 10 03:33:51 PDT 2015
https://bugzilla.gnome.org/show_bug.cgi?id=729099
Jan Alexander Steffens (heftig) <jan.steffens at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jan.steffens at gmail.com
--- Comment #3 from Jan Alexander Steffens (heftig) <jan.steffens at gmail.com> ---
It seems librtmp advertises only one means of interrupting operations in
progress: Setting the global variable RTMP_ctrlC to 1, then interrupting the
operation using a signal w/o restart, which will cause librtmp to error out on
EINTR.
Obviously, having to change global state is baaad when multiple independent
rtmp elements are being used.
I guess shutting down the socket at rtmp->m_sb.sb_socket is the easiest thing
to do in order to unlock the streaming thread. However, as mentioned above,
screwing with the socket prevents the session from being terminated cleanly.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list