comparison libmpdemux/tv.c @ 6161:c50ea0721e78

applied 64bit patch from Ulrich Hecht <uli at suse dot de>
author alex
date Thu, 23 May 2002 14:53:11 +0000
parents 4241047fb315
children 2e5c07262861
comparison
equal deleted inserted replaced
6160:bb0679dd3195 6161:c50ea0721e78
326 case AFMT_MU_LAW: 326 case AFMT_MU_LAW:
327 case AFMT_A_LAW: 327 case AFMT_A_LAW:
328 case AFMT_MPEG: 328 case AFMT_MPEG:
329 case AFMT_AC3: 329 case AFMT_AC3:
330 default: 330 default:
331 mp_msg(MSGT_TV, MSGL_ERR, "Audio type '%s' unsupported!\n", audio_out_format_name(audio_format)); 331 mp_msg(MSGT_TV, MSGL_ERR, "Audio type '%s (%x)' unsupported!\n",
332 audio_out_format_name(audio_format), audio_format);
332 goto no_audio; 333 goto no_audio;
333 } 334 }
334 335
335 sh_audio = new_sh_audio(demuxer, 0); 336 sh_audio = new_sh_audio(demuxer, 0);
336 337
369 370
370 return(funcs->start(tvh->priv)); 371 return(funcs->start(tvh->priv));
371 } 372 }
372 373
373 /* ================== STREAM_TV ===================== */ 374 /* ================== STREAM_TV ===================== */
375 tvi_handle_t *tvi_init_dummy(char *device);
376 tvi_handle_t *tvi_init_v4l(char *device);
377 tvi_handle_t *tvi_init_bsdbt848(char *device);
378
374 tvi_handle_t *tv_begin(void) 379 tvi_handle_t *tv_begin(void)
375 { 380 {
376 if (!strcmp(tv_param_driver, "dummy")) 381 if (!strcmp(tv_param_driver, "dummy"))
377 return (tvi_handle_t *)tvi_init_dummy(tv_param_device); 382 return tvi_init_dummy(tv_param_device);
378 #ifdef HAVE_TV_V4L 383 #ifdef HAVE_TV_V4L
379 if (!strcmp(tv_param_driver, "v4l")) 384 if (!strcmp(tv_param_driver, "v4l"))
380 return (tvi_handle_t *)tvi_init_v4l(tv_param_device); 385 return tvi_init_v4l(tv_param_device);
381 #endif 386 #endif
382 #ifdef HAVE_TV_BSDBT848 387 #ifdef HAVE_TV_BSDBT848
383 if (!strcmp(tv_param_driver, "bsdbt848")) 388 if (!strcmp(tv_param_driver, "bsdbt848"))
384 return (tvi_handle_t *)tvi_init_bsdbt848(tv_param_device); 389 return tvi_init_bsdbt848(tv_param_device);
385 #endif 390 #endif
386 391
387 mp_msg(MSGT_TV, MSGL_ERR, "No such driver: %s\n", tv_param_driver); 392 mp_msg(MSGT_TV, MSGL_ERR, "No such driver: %s\n", tv_param_driver);
388 return(NULL); 393 return(NULL);
389 } 394 }