Commit 4eb01082 authored by Wim Taymans's avatar Wim Taymans

media: require an element in media constructor

parent 865c9a6b
......@@ -376,6 +376,8 @@ gst_rtsp_media_new (GstElement * element)
{
GstRTSPMedia *result;
g_return_val_if_fail (GST_IS_ELEMENT (element), NULL);
result = g_object_new (GST_TYPE_RTSP_MEDIA, NULL);
result->priv->element = element;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment