summaryrefslogtreecommitdiff
path: root/src/xine-engine/input_rip.c
diff options
context:
space:
mode:
authorFrantišek Dvořák <valtri@users.sourceforge.net>2003-10-13 14:52:53 +0000
committerFrantišek Dvořák <valtri@users.sourceforge.net>2003-10-13 14:52:53 +0000
commit0cc7195ba1b662c17f4ba706847f3b00e717d875 (patch)
treeb2618304be5d291a39e27d6c14dd11261774c108 /src/xine-engine/input_rip.c
parentcbad731a5de845631bf527c99d8574b8486dea0e (diff)
downloadxine-lib-0cc7195ba1b662c17f4ba706847f3b00e717d875.tar.gz
xine-lib-0cc7195ba1b662c17f4ba706847f3b00e717d875.tar.bz2
Don't find out id3 info in mp3 files saved by RIP from non-seekable inputs.
CVS patchset: 5507 CVS date: 2003/10/13 14:52:53
Diffstat (limited to 'src/xine-engine/input_rip.c')
-rw-r--r--src/xine-engine/input_rip.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/xine-engine/input_rip.c b/src/xine-engine/input_rip.c
index 3483268d5..e8535bea7 100644
--- a/src/xine-engine/input_rip.c
+++ b/src/xine-engine/input_rip.c
@@ -29,7 +29,7 @@
* - it's possible speeder saving streams in the xine without playing:
* xine stream_mrl#save:file.raw\;noaudio\;novideo
*
- * $Id: input_rip.c,v 1.6 2003/10/05 10:39:25 valtri Exp $
+ * $Id: input_rip.c,v 1.7 2003/10/13 14:52:54 valtri Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -173,7 +173,13 @@ static uint32_t rip_plugin_get_capabilities(input_plugin_t *this_gen) {
uint32_t caps;
caps = this->main_input_plugin->get_capabilities(this->main_input_plugin);
- if (this->regular) caps |= INPUT_CAP_SEEKABLE;
+
+ if (this->regular && (caps & INPUT_CAP_SEEKABLE) == 0) {
+ /* if we have non-seekable input (and we emulate it),
+ * don't seek to end of stream when it isn't necessary */
+ caps |= INPUT_CAP_SLOW_SEEK;
+ caps |= INPUT_CAP_SEEKABLE;
+ }
if (this->preview) caps |= INPUT_CAP_PREVIEW;
return caps;
}