diff options
| author | Wim Taymans <wim.taymans@gmail.com> | 2005-06-29 16:09:55 +0000 | 
|---|---|---|
| committer | Wim Taymans <wim.taymans@gmail.com> | 2005-06-29 16:09:55 +0000 | 
| commit | 8f2272a99da38360a5c3ab9dfcb2d38a9a9f8ec0 (patch) | |
| tree | cab807dc78b55772cdc9bd901cbafe53b1486dc2 | |
| parent | 8a3ed1125f203f45d48e250c3e92c5301988fc65 (diff) | |
gst/rtsp/gstrtspsrc.c: Fix case where outpad could not be decided.
Original commit message from CVS:
* gst/rtsp/gstrtspsrc.c: (gst_rtsp_proto_get_type),
(gst_rtspsrc_class_init), (gst_rtspsrc_create_stream),
(gst_rtspsrc_add_element), (gst_rtspsrc_set_state),
(gst_rtspsrc_stream_setup_rtp),
(gst_rtspsrc_stream_configure_transport), (find_stream),
(gst_rtspsrc_loop), (gst_rtspsrc_open), (gst_rtspsrc_play),
(gst_rtspsrc_change_state):
Fix case where outpad could not be decided.
| -rw-r--r-- | ChangeLog | 11 | ||||
| -rw-r--r-- | gst/rtsp/gstrtspsrc.c | 6 | 
2 files changed, 16 insertions, 1 deletions
@@ -1,3 +1,14 @@ +2005-06-29  Wim Taymans  <wim@fluendo.com> + +	* gst/rtsp/gstrtspsrc.c: (gst_rtsp_proto_get_type), +	(gst_rtspsrc_class_init), (gst_rtspsrc_create_stream), +	(gst_rtspsrc_add_element), (gst_rtspsrc_set_state), +	(gst_rtspsrc_stream_setup_rtp), +	(gst_rtspsrc_stream_configure_transport), (find_stream), +	(gst_rtspsrc_loop), (gst_rtspsrc_open), (gst_rtspsrc_play), +	(gst_rtspsrc_change_state): +	Fix case where outpad could not be decided. +  2005-06-29  Andy Wingo  <wingo@pobox.com>  	* ext/Makefile.am (MAD_DIR): Add mad to the build. diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index d2466c35..e82d9087 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -429,7 +429,7 @@ gst_rtspsrc_loop (GstRTSPSrc * src)    GList *lstream;    GstRTSPStream *stream;    GstPadChainFunction chainfunc; -  GstPad *outpad; +  GstPad *outpad = NULL;    guint8 *data;    gint size; @@ -462,6 +462,10 @@ gst_rtspsrc_loop (GstRTSPSrc * src)      outpad = stream->rtpdecrtcp;    } +  /* we have no clue what this is, just ignore then. */ +  if (outpad == NULL) +    goto unknown_stream; +    /* and chain buffer to internal element */    {      GstBuffer *buf;  | 
