diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-10-22 17:10:20 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-10-22 17:10:20 +0000 |
commit | 281d2f5ebe47b9b0cad4c5167f63d38a47a5f64f (patch) | |
tree | bc8cf179b1f7eebdc11b8bf3e66fba58dd36c22d /src/xine-engine/xine.c | |
parent | 6431c857a1de186f1f73238cb42a7120db27e11a (diff) | |
download | xine-lib-281d2f5ebe47b9b0cad4c5167f63d38a47a5f64f.tar.gz xine-lib-281d2f5ebe47b9b0cad4c5167f63d38a47a5f64f.tar.bz2 |
added xine_is_stream_seekable function, minor code cleanups
CVS patchset: 858
CVS date: 2001/10/22 17:10:20
Diffstat (limited to 'src/xine-engine/xine.c')
-rw-r--r-- | src/xine-engine/xine.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/xine-engine/xine.c b/src/xine-engine/xine.c index 694729a66..40164625b 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.71 2001/10/20 22:18:59 miguelfreitas Exp $ + * $Id: xine.c,v 1.72 2001/10/22 17:10:21 guenter Exp $ * * top-level xine functions * @@ -671,3 +671,9 @@ void xine_get_audio_lang (xine_t *this, char *str) { } +int xine_is_stream_seekable (xine_t *this) { + + if (this->cur_input_plugin) + return this->cur_input_plugin->get_capabilities (this->cur_input_plugin) & INPUT_CAP_SEEKABLE; + return 0; +} |