diff options
author | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2004-08-30 07:37:42 +0000 |
---|---|---|
committer | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2004-08-30 07:37:42 +0000 |
commit | 27348beeeb5ae12482adaeda14ac635c09c89a38 (patch) | |
tree | 4fbe5146c90ee0abffe96d4f01e576fd15641a4c | |
parent | a5171860bcd55e56bacec9894c31c89d6b683494 (diff) | |
download | xine-lib-27348beeeb5ae12482adaeda14ac635c09c89a38.tar.gz xine-lib-27348beeeb5ae12482adaeda14ac635c09c89a38.tar.bz2 |
running without video output is allowed
CVS patchset: 6918
CVS date: 2004/08/30 07:37:42
-rw-r--r-- | src/xine-engine/xine.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/xine-engine/xine.c b/src/xine-engine/xine.c index 04d3f8bab..19d911301 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.296 2004/08/02 12:51:21 miguelfreitas Exp $ + * $Id: xine.c,v 1.297 2004/08/30 07:37:42 f1rmb Exp $ */ /* @@ -1523,15 +1523,18 @@ void _x_select_spu_channel (xine_stream_t *stream, int channel) { switch (stream->spu_channel_user) { case -2: stream->spu_channel = -1; - stream->video_out->enable_ovl (stream->video_out, 0); + if(stream->video_out) + stream->video_out->enable_ovl (stream->video_out, 0); break; case -1: stream->spu_channel = stream->spu_channel_auto; - stream->video_out->enable_ovl (stream->video_out, 1); + if(stream->video_out) + stream->video_out->enable_ovl (stream->video_out, 1); break; default: stream->spu_channel = stream->spu_channel_user; - stream->video_out->enable_ovl (stream->video_out, 1); + if(stream->video_out) + stream->video_out->enable_ovl (stream->video_out, 1); } lprintf("set to %d\n",stream->spu_channel); |