summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2002-09-05 23:20:20 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2002-09-05 23:20:20 +0000
commit9645b979e6de33baa8533c151134dade85c50118 (patch)
tree2951757108246738e8325899f7d03e07f4c2741b /src
parent838e2ccc6d52abef0eeb06952780cacc21c860c7 (diff)
downloadxine-lib-9645b979e6de33baa8533c151134dade85c50118.tar.gz
xine-lib-9645b979e6de33baa8533c151134dade85c50118.tar.bz2
removed obsolete stream_seekable function, implemented some parts of get_streaminfo instead, added missing parameters/properties noted by daniel
CVS patchset: 2620 CVS date: 2002/09/05 23:20:20
Diffstat (limited to 'src')
-rw-r--r--src/xine-engine/xine.c10
-rw-r--r--src/xine-engine/xine_interface.c57
2 files changed, 55 insertions, 12 deletions
diff --git a/src/xine-engine/xine.c b/src/xine-engine/xine.c
index f3768099e..69435755f 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.150 2002/09/05 12:51:18 guenter Exp $
+ * $Id: xine.c,v 1.151 2002/09/05 23:20:21 guenter Exp $
*
* top-level xine functions
*
@@ -1035,14 +1035,6 @@ int xine_get_spu_channel (xine_t *this) {
return this->spu_channel_user;
}
-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 -1;
-}
-
osd_renderer_t *xine_get_osd_renderer (xine_t *this) {
return this->osd_renderer;
diff --git a/src/xine-engine/xine_interface.c b/src/xine-engine/xine_interface.c
index a0c594c07..695697511 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.3 2002/09/05 20:19:50 guenter Exp $
+ * $Id: xine_interface.c,v 1.4 2002/09/05 23:20:21 guenter Exp $
*
* convenience/abstraction layer, functions to implement
* libxine's public interface
@@ -314,6 +314,10 @@ void xine_set_param (xine_t *this, int param, int value) {
this->video_channel = value;
pthread_mutex_unlock (&this->xine_lock);
break;
+
+ case XINE_PARAM_AUDIO_VOLUME:
+ break; /* FIXME: implement */
+
}
}
@@ -335,6 +339,9 @@ int xine_get_param (xine_t *this, int param) {
case XINE_PARAM_VIDEO_CHANNEL:
return this->video_channel;
+ case XINE_PARAM_AUDIO_VOLUME:
+ return -1; /* FIXME: implement */
+
default:
printf ("xine_interface: unknown param %d\n", param);
abort ();
@@ -343,7 +350,51 @@ int xine_get_param (xine_t *this, int param) {
return 0;
}
-uint32_t xine_get_stream_info (xine_t *self, int info) {
+uint32_t xine_get_stream_info (xine_t *this, int info) {
printf ("xine_interface: xine_get_stream_info: not implemented\n");
- abort();
+
+ 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_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 */
+
+ 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",
+ info);
+ }
+ return 0;
}
+