Mercurial > mplayer.hg
comparison gui/interface.c @ 34399:f2c03009068d
Don't explicitly set stream type if the type doesn't change.
Use a self-explanatory symbolic constant which makes the code
more easily understandable.
author | ib |
---|---|
date | Mon, 02 Jan 2012 15:16:55 +0000 |
parents | b2d661762e90 |
children | bca629bb50cf |
comparison
equal
deleted
inserted
replaced
34398:9120eb514454 | 34399:f2c03009068d |
---|---|
414 case STREAMTYPE_CDDA: | 414 case STREAMTYPE_CDDA: |
415 { | 415 { |
416 char tmp[512]; | 416 char tmp[512]; |
417 | 417 |
418 sprintf(tmp, "cdda://%d", guiInfo.Track); | 418 sprintf(tmp, "cdda://%d", guiInfo.Track); |
419 uiSetFileName(NULL, tmp, STREAMTYPE_CDDA); | 419 uiSetFileName(NULL, tmp, SAME_STREAMTYPE); |
420 } | 420 } |
421 break; | 421 break; |
422 #endif | 422 #endif |
423 | 423 |
424 #ifdef CONFIG_VCD | 424 #ifdef CONFIG_VCD |
425 case STREAMTYPE_VCD: | 425 case STREAMTYPE_VCD: |
426 { | 426 { |
427 char tmp[512]; | 427 char tmp[512]; |
428 | 428 |
429 sprintf(tmp, "vcd://%d", guiInfo.Track); | 429 sprintf(tmp, "vcd://%d", guiInfo.Track); |
430 uiSetFileName(NULL, tmp, STREAMTYPE_VCD); | 430 uiSetFileName(NULL, tmp, SAME_STREAMTYPE); |
431 } | 431 } |
432 break; | 432 break; |
433 #endif | 433 #endif |
434 | 434 |
435 #ifdef CONFIG_DVDREAD | 435 #ifdef CONFIG_DVDREAD |
436 case STREAMTYPE_DVD: | 436 case STREAMTYPE_DVD: |
437 { | 437 { |
438 char tmp[512]; | 438 char tmp[512]; |
439 | 439 |
440 sprintf(tmp, "dvd://%d", guiInfo.Track); | 440 sprintf(tmp, "dvd://%d", guiInfo.Track); |
441 uiSetFileName(NULL, tmp, STREAMTYPE_DVD); | 441 uiSetFileName(NULL, tmp, SAME_STREAMTYPE); |
442 } | 442 } |
443 | 443 |
444 dvd_chapter = guiInfo.Chapter; | 444 dvd_chapter = guiInfo.Chapter; |
445 dvd_angle = guiInfo.Angle; | 445 dvd_angle = guiInfo.Angle; |
446 | 446 |