comparison stream/stream_bd.c @ 32326:4189a8951568

Use bluray_device variable also for bd:// instead of dvd_device which does not make sense.
author reimar
date Wed, 29 Sep 2010 19:43:34 +0000
parents d0d09a75bb17
children 288e5d438772
comparison
equal deleted inserted replaced
32325:0ba9d1a85eb4 32326:4189a8951568
450 struct stream_priv_s* p = opts; 450 struct stream_priv_s* p = opts;
451 struct bd_priv *bd = calloc(1, sizeof(*bd)); 451 struct bd_priv *bd = calloc(1, sizeof(*bd));
452 452
453 if (p->device) 453 if (p->device)
454 bd->device = p->device; 454 bd->device = p->device;
455 else if (dvd_device) 455 else if (bluray_device)
456 bd->device = dvd_device; 456 bd->device = bluray_device;
457 else 457 else
458 bd->device = DEFAULT_BD_DEVICE; 458 bd->device = DEFAULT_BD_DEVICE;
459 459
460 s->sector_size = BD_UNIT_SIZE; 460 s->sector_size = BD_UNIT_SIZE;
461 s->flags = STREAM_READ | MP_STREAM_SEEK; 461 s->flags = STREAM_READ | MP_STREAM_SEEK;