summaryrefslogtreecommitdiffstats
path: root/gst/udp
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2005-09-21 12:19:24 +0000
committerWim Taymans <wim.taymans@gmail.com>2005-09-21 12:19:24 +0000
commit9dd3929730bc3e2656eabfd8a8edfc7a61bb0176 (patch)
treeb67f40938625cb38ade8500e3a1650ed3db04c9d /gst/udp
parenteb20f045f8fcbf9e6459cb7d7c608acb72c5f8b6 (diff)
gst/rtp/README: Update README
Original commit message from CVS: * gst/rtp/README: Update README * gst/rtp/gstrtpamrdec.c: (gst_rtpamrdec_sink_setcaps): Make extra params as strings. * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_set_state), (gst_rtspsrc_parse_rtpmap), (gst_rtspsrc_media_to_caps), (gst_rtspsrc_stream_setup_rtp), (gst_rtspsrc_send): Make state change return NO_PREROLL as this is a live source. * gst/udp/gstudpsrc.c: (gst_udpsrc_set_property): Don't unref old caps when NULL.
Diffstat (limited to 'gst/udp')
-rw-r--r--gst/udp/gstudpsrc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/udp/gstudpsrc.c b/gst/udp/gstudpsrc.c
index 3c95ee60..d992151f 100644
--- a/gst/udp/gstudpsrc.c
+++ b/gst/udp/gstudpsrc.c
@@ -407,7 +407,8 @@ gst_udpsrc_set_property (GObject * object, guint prop_id, const GValue * value,
old_caps = udpsrc->caps;
udpsrc->caps = new_caps;
- gst_caps_unref (old_caps);
+ if (old_caps)
+ gst_caps_unref (old_caps);
gst_pad_set_caps (GST_BASE_SRC (udpsrc)->srcpad, new_caps);
break;
}