diff options
author | František Dvořák <valtri@users.sourceforge.net> | 2003-11-02 14:12:52 +0000 |
---|---|---|
committer | František Dvořák <valtri@users.sourceforge.net> | 2003-11-02 14:12:52 +0000 |
commit | 343ab585e64376b933bd396f01b2009285c30e87 (patch) | |
tree | 5a9aa910b9faecbd3acd4712c801f1b1dc27fedb /src/xine-engine/input_rip.c | |
parent | e048d699a94fd42068fd706b56d628b55f4b7b72 (diff) | |
download | xine-lib-343ab585e64376b933bd396f01b2009285c30e87.tar.gz xine-lib-343ab585e64376b933bd396f01b2009285c30e87.tar.bz2 |
Fix SEGFAULT beside error if no plugin loaded yet.
Fix one "segfault" of win32 xineui.
Next piece of patch for compiling xine under MSVC.
CVS patchset: 5676
CVS date: 2003/11/02 14:12:52
Diffstat (limited to 'src/xine-engine/input_rip.c')
-rw-r--r-- | src/xine-engine/input_rip.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/xine-engine/input_rip.c b/src/xine-engine/input_rip.c index 8b5cfbb08..3365a9ce1 100644 --- a/src/xine-engine/input_rip.c +++ b/src/xine-engine/input_rip.c @@ -29,7 +29,7 @@ * - it's possible speeder saving streams in the xine without playing: * xine stream_mrl#save:file.raw\;noaudio\;novideo * - * $Id: input_rip.c,v 1.9 2003/10/24 09:34:01 mroi Exp $ + * $Id: input_rip.c,v 1.10 2003/11/02 14:12:52 valtri Exp $ */ /* TODO: @@ -577,6 +577,7 @@ input_plugin_t *rip_plugin_get_instance (xine_stream_t *stream, const char *file free(this); return NULL; } +#ifndef _MSC_VER if (errno != ENOENT && S_ISFIFO(pstat.st_mode)) { this->regular = 0; mode = "wb"; @@ -584,6 +585,11 @@ input_plugin_t *rip_plugin_get_instance (xine_stream_t *stream, const char *file this->regular = 1; mode = "wb+"; } +#else + /* no fifos under MSVC */ + this->regular = 1; + mode = "wb+"; +#endif if ((this->file = fopen(target, mode)) == NULL) { xine_log(this->stream->xine, XINE_LOG_MSG, |