mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
media: require an element in media constructor
This commit is contained in:
parent
865c9a6b30
commit
4eb010824e
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue