rtsp: massive refactoring
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 25 Oct 2012 19:29:58 +0000 (21:29 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 25 Oct 2012 19:29:58 +0000 (21:29 +0200)
commitde7c72dec2a022b90cefe21ec0a92b1ad452c19d
treec7fbab9d253c93477f3a59cbfca445c242ed876c
parent0de6262dc4f816c69d2a768068fd548c923cb61c
rtsp: massive refactoring

Make GObjects from the remaining simple structures.
Remove GstRTSPSessionStream, it's not needed.
Rename GstRTSPMediaStream -> GstRTSPStream: It is shorter
Rename GstRTSPMediaTrans -> GstRTSPStreamTransport: It describes how
  a GstRTSPStream should be transported to a client.
Rename GstRTSPMediaFactory::get_element -> create_element because that
  more accurately describes what it does.
Make nice methods instead of poking in the structures.
Move some methods inside the relevant object source code.
Use GPtrArray to store objects instead of plain arrays, it is more
  natural and allows us to more easily clean up.
Move the allocation of udp ports to the Stream object. The Stream object
  contains the elements needed to stream the media to a client.
Improve the prepare and unprepare methods. Unprepare should now undo
  everything prepare did. Improve also async unprepare when doing EOS on
  shutdown. Make sure we always unprepare correctly.
17 files changed:
gst/rtsp-server/Makefile.am
gst/rtsp-server/rtsp-client.c
gst/rtsp-server/rtsp-client.h
gst/rtsp-server/rtsp-media-factory-uri.c
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-sdp.c
gst/rtsp-server/rtsp-session-media.c [new file with mode: 0644]
gst/rtsp-server/rtsp-session-media.h [new file with mode: 0644]
gst/rtsp-server/rtsp-session.c
gst/rtsp-server/rtsp-session.h
gst/rtsp-server/rtsp-stream-transport.c [new file with mode: 0644]
gst/rtsp-server/rtsp-stream-transport.h [new file with mode: 0644]
gst/rtsp-server/rtsp-stream.c [new file with mode: 0644]
gst/rtsp-server/rtsp-stream.h [new file with mode: 0644]