GST_DEBUG_CATEGORY_STATIC (gst_rtmp_sink_debug);
#define GST_CAT_DEFAULT gst_rtmp_sink_debug
-/* Filter signals and args */
-enum
-{
- /* FILL ME */
- LAST_SIGNAL
-};
+#define DEFAULT_LOCATION NULL
enum
{
gobject_class->set_property = gst_rtmp_sink_set_property;
gobject_class->get_property = gst_rtmp_sink_get_property;
- gst_element_class_install_std_props (gstelement_class,
- "location", PROP_LOCATION, G_PARAM_READWRITE, NULL);
+ g_object_class_install_property (gobject_class, PROP_LOCATION,
+ g_param_spec_string ("location", "RTMP Location", "RTMP url",
+ DEFAULT_LOCATION, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gst_element_class_set_details_simple (gstelement_class,
"RTMP output sink",
if (GST_STATE (sink) >= GST_STATE_PAUSED) {
g_set_error (error, GST_URI_ERROR, GST_URI_ERROR_BAD_STATE,
- "Changing the URI on rtmpsrc when it is running is not supported");
+ "Changing the URI on rtmpsink when it is running is not supported");
return FALSE;
}
enum
{
PROP_0,
- PROP_LOCATION,
- PROP_SWF_URL,
+ PROP_LOCATION
+#if 0
+ PROP_SWF_URL,
PROP_PAGE_URL
+#endif
};
+#define DEFAULT_LOCATION NULL
+
static void gst_rtmp_src_uri_handler_init (gpointer g_iface,
gpointer iface_data);
gobject_class->get_property = gst_rtmp_src_get_property;
/* properties */
- gst_element_class_install_std_props (gstelement_class,
- "location", PROP_LOCATION, G_PARAM_READWRITE, NULL);
+ g_object_class_install_property (gobject_class, PROP_LOCATION,
+ g_param_spec_string ("location", "RTMP Location",
+ "Location of the RTMP url to read",
+ DEFAULT_LOCATION, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&srctemplate));