projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
865c9a6
)
media: require an element in media constructor
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Thu, 29 Nov 2012 16:20:26 +0000
(17:20 +0100)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Thu, 29 Nov 2012 16:20:26 +0000
(17:20 +0100)
gst/rtsp-server/rtsp-media.c
patch
|
blob
|
history
diff --git
a/gst/rtsp-server/rtsp-media.c
b/gst/rtsp-server/rtsp-media.c
index
0165769
..
2258cca
100644
(file)
--- a/
gst/rtsp-server/rtsp-media.c
+++ b/
gst/rtsp-server/rtsp-media.c
@@
-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;