media: require an element in media constructor

This commit is contained in:
Wim Taymans 2012-11-29 17:20:26 +01:00
parent 865c9a6b30
commit 4eb010824e

View file

@ -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;