From 1fe26bd7061190f19b3afb55bade89d4bb52d424 Mon Sep 17 00:00:00 2001 From: Stephen Torri Date: Sun, 4 Jan 2004 00:00:58 +0000 Subject: James Courtier-Dutton - Fix segfault when mrl is NULL CVS patchset: 5986 CVS date: 2004/01/04 00:00:58 --- src/xine-engine/xine.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/xine-engine/xine.c b/src/xine-engine/xine.c index 68869b89a..fcc04cebd 100644 --- a/src/xine-engine/xine.c +++ b/src/xine-engine/xine.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine.c,v 1.278 2003/12/28 15:01:39 siggi Exp $ + * $Id: xine.c,v 1.279 2004/01/04 00:00:58 storri Exp $ */ /* @@ -512,6 +512,13 @@ static int __open_internal (xine_stream_t *stream, const char *mrl) { const char *stream_setup; + if (!mrl) { + xprintf (stream->xine, XINE_VERBOSITY_LOG, _("xine: error while parsing mrl\n")); + stream->err = XINE_ERROR_MALFORMED_MRL; + stream->status = XINE_STATUS_STOP; + return 0; + } + lprintf ("opening MRL '%s'...\n", mrl); /* -- cgit v1.2.3