~ubuntu-dev/mplayer/ubuntu-feisty

« back to all changes in this revision

Viewing changes to libmpdemux/demux_xmms.c

  • Committer: Reinhard Tartler
  • Date: 2006-07-08 08:47:54 UTC
  • Revision ID: siretart@tauware.de-20060708084754-c3ff228cc9c2d8de
upgrade to pre8

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#include "demuxer.h"
19
19
#include "stheader.h"
20
20
 
 
21
#include "mp_msg.h"
 
22
#include "help_mp.h"
 
23
 
21
24
#define XMMS_PACKETSIZE 65536  // some plugins won't play if this is too small
22
25
 
23
26
#include "demux_xmms_plugin.h"
171
174
            gpi=dlsym(handle, "get_iplugin_info");
172
175
            if(gpi){
173
176
                InputPlugin *p=gpi();
174
 
                printf("XMMS: found plugin: %s (%s)\n",ent->d_name,p->description);
 
177
                mp_msg(MSGT_DEMUX, MSGL_INFO, MSGTR_MPDEMUX_XMMS_FoundPlugin,ent->d_name,p->description);
175
178
                p->handle = handle;
176
179
                p->filename = strdup(filename);
177
180
                p->get_vis_type = input_get_vis_type;
190
193
static void cleanup_plugins(){
191
194
    while(no_plugins>0){
192
195
        --no_plugins;
193
 
        printf("XMMS: Closing plugin %s\n",input_plugins[no_plugins]->filename);
 
196
        mp_msg(MSGT_DEMUX, MSGL_INFO, MSGTR_MPDEMUX_XMMS_ClosingPlugin,input_plugins[no_plugins]->filename);
194
197
        if(input_plugins[no_plugins]->cleanup)
195
198
            input_plugins[no_plugins]->cleanup();
196
199
        dlclose(input_plugins[no_plugins]->handle);
297
300
  return 1;
298
301
}
299
302
 
300
 
static void demux_xmms_seek(demuxer_t *demuxer,float rel_seek_secs,int flags){
 
303
static void demux_xmms_seek(demuxer_t *demuxer,float rel_seek_secs,float audio_delay,int flags){
301
304
  stream_t* s = demuxer->stream;
302
305
  sh_audio_t* sh_audio = demuxer->audio->sh;
303
306
  xmms_priv_t *priv=demuxer->priv;