Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/emotion
Dir : e17/libs/emotion/src/modules
Modified Files:
emotion_xine.c
Log Message:
protect if opening still
===================================================================
RCS file: /cvs/e/e17/libs/emotion/src/modules/emotion_xine.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -3 -r1.36 -r1.37
--- emotion_xine.c 21 Mar 2007 20:20:45 -0000 1.36
+++ emotion_xine.c 6 May 2007 06:40:00 -0000 1.37
@@ -852,6 +852,7 @@
int v;
ev = (Emotion_Xine_Video *)ef;
+ if (ev->opening) return 0;
v = xine_get_stream_info(ev->stream, XINE_STREAM_INFO_VIDEO_CHANNELS);
if ((v < 1) &&
xine_get_stream_info(ev->stream, XINE_STREAM_INFO_HAS_VIDEO)) return 1;
@@ -875,6 +876,7 @@
Emotion_Xine_Video *ev;
ev = (Emotion_Xine_Video *)ef;
+ if (ev->opening) return 0;
return xine_get_param(ev->stream, XINE_PARAM_VIDEO_CHANNEL);
}
@@ -911,6 +913,7 @@
Emotion_Xine_Video *ev;
ev = (Emotion_Xine_Video *)ef;
+ if (ev->opening) return 0;
return xine_get_stream_info(ev->stream, XINE_STREAM_INFO_MAX_AUDIO_CHANNEL);
}
@@ -931,6 +934,7 @@
Emotion_Xine_Video *ev;
ev = (Emotion_Xine_Video *)ef;
+ if (ev->opening) return 0;
return xine_get_param(ev->stream, XINE_PARAM_AUDIO_CHANNEL_LOGICAL);
}
@@ -941,6 +945,7 @@
static char lang[XINE_LANG_MAX + 1];
ev = (Emotion_Xine_Video *)ef;
+ if (ev->opening) return NULL;
lang[0] = 0;
if (xine_get_audio_lang(ev->stream, channel, lang)) return lang;
return NULL;
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs