media: add suspend modes
authorWim Taymans <wtaymans@redhat.com>
Thu, 28 Nov 2013 13:10:19 +0000 (14:10 +0100)
committerWim Taymans <wtaymans@redhat.com>
Thu, 28 Nov 2013 15:18:39 +0000 (16:18 +0100)
commit2f17369e9d110e1a437124a3e116fd2e092363bd
tree0a60c0bf3cb9d18eefaaf1aebea303480ac28bc0
parentdb771c5167f46cb64f7ad3b870d68f95530420d3
media: add suspend modes

Add support for different suspend modes. The stream is suspended right after
producing the SDP and after PAUSE. Different suspend modes are available that
affect the state of the pipeline. NONE leaves the pipeline state unchanged and
is the current and old behaviour, PAUSE will set the pipeline to the PAUSED
state and RESET will bring the pipeline to the NULL state.
A stream is also unsuspended when it goes back to PLAYING, for RESET streams,
this means that the pipeline needs to be prerolled again.

Base on patches by Ognyan Tonchev <ognyan@axis.com>

See https://bugzilla.gnome.org/show_bug.cgi?id=711257
gst/rtsp-server/rtsp-media-factory.c
gst/rtsp-server/rtsp-media-factory.h
gst/rtsp-server/rtsp-media.c
gst/rtsp-server/rtsp-media.h
gst/rtsp-server/rtsp-session-media.c
gst/rtsp-server/rtsp-session.c
tests/check/gst/media.c
tests/check/gst/mediafactory.c