diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2015-01-28 18:54:01 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2015-02-06 09:42:50 +0100 |
commit | a93ed7e5d41c6ef19dc2ac764c293efe5fe4d8f5 (patch) | |
tree | b4589c33b57ef22cd57e625c2ab3dfb506229452 /examples | |
parent | aa1feab8740ac305cbcfe8655590b5d8fad63572 (diff) |
rtsp-media: Use flags to distinguish between PLAY and RECORD media
Diffstat (limited to 'examples')
-rw-r--r-- | examples/test-record.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/test-record.c b/examples/test-record.c index 86dcf6e..1c6ac3f 100644 --- a/examples/test-record.c +++ b/examples/test-record.c @@ -67,7 +67,8 @@ main (int argc, char *argv[]) * any launch line works as long as it contains elements named depay%d. Each * element with depay%d names will be a stream */ factory = gst_rtsp_media_factory_new (); - gst_rtsp_media_factory_set_record (factory, TRUE); + gst_rtsp_media_factory_set_transport_mode (factory, + GST_RTSP_TRANSPORT_MODE_RECORD); gst_rtsp_media_factory_set_launch (factory, argv[1]); gst_rtsp_media_factory_set_latency (factory, 2000); |