summaryrefslogtreecommitdiff
path: root/src/xine-engine/xine_interface.c
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2002-09-13 18:25:22 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2002-09-13 18:25:22 +0000
commitb5a4b5b7c50ef17e948c21077e6b693b5581b244 (patch)
treee7b0ca700136dc62cc53d30ba1a6be2923010041 /src/xine-engine/xine_interface.c
parent2e4d006f2c2418351da08843ed560ec271b69693 (diff)
downloadxine-lib-b5a4b5b7c50ef17e948c21077e6b693b5581b244.tar.gz
xine-lib-b5a4b5b7c50ef17e948c21077e6b693b5581b244.tar.bz2
introducing meta information and some audio controls - but nothing is really implemented yet, so please move on, nothing to see here...
CVS patchset: 2660 CVS date: 2002/09/13 18:25:22
Diffstat (limited to 'src/xine-engine/xine_interface.c')
-rw-r--r--src/xine-engine/xine_interface.c41
1 files changed, 15 insertions, 26 deletions
diff --git a/src/xine-engine/xine_interface.c b/src/xine-engine/xine_interface.c
index 66e141dbe..0b2532141 100644
--- a/src/xine-engine/xine_interface.c
+++ b/src/xine-engine/xine_interface.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_interface.c,v 1.10 2002/09/11 17:41:08 guenter Exp $
+ * $Id: xine_interface.c,v 1.11 2002/09/13 18:25:23 guenter Exp $
*
* convenience/abstraction layer, functions to implement
* libxine's public interface
@@ -384,50 +384,39 @@ int xine_get_param (xine_p this, int param) {
}
uint32_t xine_get_stream_info (xine_p this, int info) {
- printf ("xine_interface: xine_get_stream_info: not implemented\n");
switch (info) {
- case XINE_STREAM_INFO_WIDTH:
- return 0; /* FIXME */
-
- case XINE_STREAM_INFO_HEIGHT:
- return 0; /* FIXME */
-
case XINE_STREAM_INFO_SEEKABLE:
if (this->cur_input_plugin)
return this->cur_input_plugin->get_capabilities (this->cur_input_plugin) & INPUT_CAP_SEEKABLE;
return 0;
+ case XINE_STREAM_INFO_HAS_CHAPTERS:
+ if (this->cur_input_plugin)
+ return this->cur_input_plugin->get_capabilities (this->cur_input_plugin) & INPUT_CAP_CHAPTERS;
+ return 0;
+
+ case XINE_STREAM_INFO_WIDTH:
+ case XINE_STREAM_INFO_HEIGHT:
case XINE_STREAM_INFO_VIDEO_FOURCC:
- return 0; /* FIXME */
-
case XINE_STREAM_INFO_VIDEO_CHANNELS:
- return 0; /* FIXME */
-
case XINE_STREAM_INFO_VIDEO_STREAMS:
- return 0; /* FIXME */
-
case XINE_STREAM_INFO_AUDIO_FOURCC:
- return 0; /* FIXME */
-
case XINE_STREAM_INFO_AUDIO_CHANNELS:
- return 0; /* FIXME */
-
case XINE_STREAM_INFO_AUDIO_BITS:
- return 0; /* FIXME */
-
case XINE_STREAM_INFO_AUDIO_SAMPLERATE:
- return 0; /* FIXME */
+ return this->stream_info[info];
- case XINE_STREAM_INFO_HAS_CHAPTERS:
- if (this->cur_input_plugin)
- return this->cur_input_plugin->get_capabilities (this->cur_input_plugin) & INPUT_CAP_CHAPTERS;
- return 0;
default:
- printf ("xine_interface: error, unknown info (%d) requested\n",
+ printf ("xine_interface: error, unknown stream info (%d) requested\n",
info);
}
return 0;
}
+const char *xine_get_meta_info (xine_p this, int info) {
+
+ return this->meta_info[info];
+}
+