From 219e9ab1331d179f3052f33dc6b41604f712939f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 6 Jul 2012 14:53:57 +0100 Subject: [PATCH] asfmux: remove deprecated "is-live" property Use the "streamable" property instead. --- gst/asfmux/gstasfmux.c | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/gst/asfmux/gstasfmux.c b/gst/asfmux/gstasfmux.c index c7d6743..6754f29 100644 --- a/gst/asfmux/gstasfmux.c +++ b/gst/asfmux/gstasfmux.c @@ -45,7 +45,7 @@ * * Live streaming * asfmux and rtpasfpay are capable of generating a live asf stream. - * asfmux has to set its 'is-live' property to true, because in this + * asfmux has to set its 'streamable' property to true, because in this * mode it won't try to seek back to the start of the file to replace * some fields that couldn't be known at the file start. In this mode, * it won't also send indexes at the end of the data packets (the actual @@ -54,7 +54,7 @@ * (write everything in one line, without the backslash characters) * Server (sender) * |[ - * gst-launch -ve videotestsrc ! ffenc_wmv2 ! asfmux name=mux is-live=true \ + * gst-launch -ve videotestsrc ! ffenc_wmv2 ! asfmux name=mux streamable=true \ * ! rtpasfpay ! udpsink host=127.0.0.1 port=3333 \ * audiotestsrc ! ffenc_wmav2 ! mux. * ]| @@ -90,7 +90,6 @@ enum PROP_PREROLL, PROP_MERGE_STREAM_TAGS, PROP_PADDING, - PROP_IS_LIVE, PROP_STREAMABLE }; @@ -260,10 +259,6 @@ gst_asf_mux_class_init (GstAsfMuxClass * klass) 0, G_MAXUINT64, DEFAULT_PADDING, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); - g_object_class_install_property (gobject_class, PROP_IS_LIVE, - g_param_spec_boolean ("is-live", "Is Live (deprecated)", - "Deprecated in 0.10.20, use 'streamable' instead", - DEFAULT_STREAMABLE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_STREAMABLE, g_param_spec_boolean ("streamable", "Streamable", "If set to true, the output should be as if it is to be streamed " @@ -2333,11 +2328,6 @@ gst_asf_mux_get_property (GObject * object, case PROP_PADDING: g_value_set_uint64 (value, asfmux->prop_padding); break; - case PROP_IS_LIVE: - GST_WARNING_OBJECT (object, "The 'is-live' property is deprecated, use " - "the 'streamable' property instead"); - g_value_set_boolean (value, asfmux->prop_streamable); - break; case PROP_STREAMABLE: g_value_set_boolean (value, asfmux->prop_streamable); break; @@ -2367,10 +2357,6 @@ gst_asf_mux_set_property (GObject * object, case PROP_PADDING: asfmux->prop_padding = g_value_get_uint64 (value); break; - case PROP_IS_LIVE: - g_warning ("This property is deprecated, use 'streamable' instead"); - asfmux->prop_streamable = g_value_get_boolean (value); - break; case PROP_STREAMABLE: asfmux->prop_streamable = g_value_get_boolean (value); break; -- 2.7.4