Changeset 89298c16e4964b9033ab4cb6290a953775e92c76
- Timestamp:
- 08/23/06 01:22:14
(2 years ago)
- Author:
- Felix Paul Kühne <fkuehne@videolan.org>
- git-committer:
- Felix Paul Kühne <fkuehne@videolan.org> 1156288934 +0000
- git-parent:
[dfc8392cd3b2de84dc55e0f4dabf9de63e4d2a42]
- git-author:
- Felix Paul Kühne <fkuehne@videolan.org> 1156288934 +0000
- Message:
* browsed through all code files starting with A to F and added non-blocking intf_UserFatal calls next to msg_err where I think that it is necessary.
I tried to select the most important msg_errs. If I missed your favourite, feel free to add it.
Feedback on the wording and the placement of the interaction calls is strongly welcomed.
For the records: I'm using some general topics for most of the dialogues to produce less work for the translators. The current ones go like this:
"Audio output failed", "Network interaction failed", "Streaming / Transcoding failed", "Audio filtering failed", "File reading failed", "Playback failure"
More to come.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r25ee96d |
r89298c1 |
|
| 32 | 32 | #include <vlc_playlist.h> /* Has to come *after* cdda.h */ |
|---|
| 33 | 33 | #include "vlc_keys.h" |
|---|
| | 34 | #include <vlc_interaction.h> |
|---|
| 34 | 35 | |
|---|
| 35 | 36 | #include <cdio/cdio.h> |
|---|
| … | … | |
| 290 | 291 | msg_Err( p_access, "cannot get a new block of size: %i", |
|---|
| 291 | 292 | i_blocks * CDIO_CD_FRAMESIZE_RAW ); |
|---|
| | 293 | intf_UserFatal( p_access, VLC_FALSE, _("CD reading failed"), |
|---|
| | 294 | _("VLC could not get a new block of size: %i."), |
|---|
| | 295 | i_blocks * CDIO_CD_FRAMESIZE_RAW ); |
|---|
| 292 | 296 | return NULL; |
|---|
| 293 | 297 | } |
|---|
| rfb220e5 |
r89298c1 |
|
| 33 | 33 | #include <vlc/input.h> |
|---|
| 34 | 34 | #include <vlc/vout.h> |
|---|
| | 35 | #include <vlc_interaction.h> |
|---|
| 35 | 36 | |
|---|
| 36 | 37 | #include "common.h" |
|---|
| … | … | |
| 891 | 892 | msg_Err( p_this, "can't use device: %s, unsupported device type", |
|---|
| 892 | 893 | devicename.c_str() ); |
|---|
| | 894 | intf_UserFatal( p_vout, VLC_FALSE, _("Capturing failed"), |
|---|
| | 895 | _("VLC cannot use the device \"%s\", because its device " |
|---|
| | 896 | "type is not supported.") ); |
|---|
| 893 | 897 | return VLC_EGENERIC; |
|---|
| 894 | 898 | } |
|---|
| … | … | |
| 938 | 942 | /* capture device */ |
|---|
| 939 | 943 | msg_Err( p_this, "capture device '%s' does not support required parameters !", devicename.c_str() ); |
|---|
| | 944 | intf_UserFatal( p_this, VLC_FALSE, _("Capturing failed"), |
|---|
| | 945 | _("The capture device \"%s\" does not support the " |
|---|
| | 946 | "required parameters."), devicename.c_str() ); |
|---|
| 940 | 947 | p_device_filter->Release(); |
|---|
| 941 | 948 | return VLC_EGENERIC; |
|---|
| r2a06d83 |
r89298c1 |
|
| 30 | 30 | #include <vlc/vlc.h> |
|---|
| 31 | 31 | #include <vlc/input.h> |
|---|
| | 32 | #include <vlc_interaction.h> |
|---|
| 32 | 33 | |
|---|
| 33 | 34 | #ifdef HAVE_UNISTD_H |
|---|
| … | … | |
| 713 | 714 | msg_Err( p_access, "the DVB input old syntax is deprecated, use vlc " |
|---|
| 714 | 715 | "-p dvb to see an explanation of the new syntax" ); |
|---|
| | 716 | intf_UserFatal( p_access, VLC_TRUE, _("Input syntax is deprecated"), |
|---|
| | 717 | _("The given syntax is deprecated. Run \"vlc -p dvb\" to see an " \ |
|---|
| | 718 | "explanation of the new syntax.") ); |
|---|
| 715 | 719 | free( psz_dup ); |
|---|
| 716 | 720 | return VLC_EGENERIC; |
|---|
| … | … | |
| 757 | 761 | { |
|---|
| 758 | 762 | msg_Err( p_access, "illegal polarization %c", *psz_parser ); |
|---|
| | 763 | intf_UserFatal( p_access, VLC_FALSE, _("Illegal Polarization"), |
|---|
| | 764 | _("The provided polarization \"%c\" is not valid."), |
|---|
| | 765 | *psz_parser ); |
|---|
| 759 | 766 | free( psz_dup ); |
|---|
| 760 | 767 | return VLC_EGENERIC; |
|---|
| r90a4cae |
r89298c1 |
|
| 29 | 29 | #include <vlc/vlc.h> |
|---|
| 30 | 30 | #include <vlc/input.h> |
|---|
| | 31 | #include <vlc_interaction.h> |
|---|
| 31 | 32 | |
|---|
| 32 | 33 | #ifdef HAVE_UNISTD_H |
|---|
| … | … | |
| 293 | 294 | { |
|---|
| 294 | 295 | msg_Err( p_demux, "cannot set title (can't decrypt DVD?)" ); |
|---|
| | 296 | intf_UserFatal( p_demux, VLC_FALSE, _("Playback failure"), |
|---|
| | 297 | _("VLC cannot set the DVD's title. It possibly " |
|---|
| | 298 | "cannot decrypt the entire disk.") ); |
|---|
| 295 | 299 | dvdnav_close( p_sys->dvdnav ); |
|---|
| 296 | 300 | free( p_sys ); |
|---|
| r90a4cae |
r89298c1 |
|
| 2 | 2 | * dvdread.c : DvdRead input module for vlc |
|---|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | | * Copyright (C) 2001-2004 the VideoLAN team |
|---|
| | 4 | * Copyright (C) 2001-2006 the VideoLAN team |
|---|
| 5 | 5 | * $Id$ |
|---|
| 6 | 6 | * |
|---|
| 7 | | * Authors: St�hane Borel <stef@via.ecp.fr> |
|---|
| | 7 | * Authors: Stéphane Borel <stef@via.ecp.fr> |
|---|
| 8 | 8 | * Gildas Bazin <gbazin@videolan.org> |
|---|
| 9 | 9 | * |
|---|
| … | … | |
| 32 | 32 | #include <vlc/vlc.h> |
|---|
| 33 | 33 | #include <vlc/input.h> |
|---|
| | 34 | #include <vlc_interaction.h> |
|---|
| 34 | 35 | |
|---|
| 35 | 36 | #include "iso_lang.h" |
|---|
| … | … | |
| 233 | 234 | { |
|---|
| 234 | 235 | msg_Err( p_demux, "DVDRead cannot open source: %s", psz_name ); |
|---|
| | 236 | intf_UserFatal( p_demux, VLC_FALSE, _("Playback failure"), |
|---|
| | 237 | _("DVDRead could not open disk \"%s\"."), psz_name ); |
|---|
| 235 | 238 | free( psz_name ); |
|---|
| 236 | 239 | return VLC_EGENERIC; |
|---|
| … | … | |
| 490 | 493 | { |
|---|
| 491 | 494 | msg_Err( p_demux, "read failed for block %d", p_sys->i_next_vobu ); |
|---|
| | 495 | intf_UserWarn( p_demux, _("Playback failure"), |
|---|
| | 496 | _("DVDRead could not read block %d."), |
|---|
| | 497 | p_sys->i_next_vobu ); |
|---|
| 492 | 498 | return -1; |
|---|
| 493 | 499 | } |
|---|
| … | … | |
| 549 | 555 | msg_Err( p_demux, "read failed for %d/%d blocks at 0x%02x", |
|---|
| 550 | 556 | i_read, i_blocks_once, p_sys->i_cur_block ); |
|---|
| | 557 | intf_UserFatal( p_demux, VLC_FALSE, _("Playback failure"), |
|---|
| | 558 | _("DVDRead could not read %d/%d blocks at 0x%02x."), |
|---|
| | 559 | i_read, i_blocks_once, p_sys->i_cur_block ); |
|---|
| 551 | 560 | return -1; |
|---|
| 552 | 561 | } |
|---|
| r4ecc5ff |
r89298c1 |
|
| 28 | 28 | #include <vlc/vlc.h> |
|---|
| 29 | 29 | #include <vlc/input.h> |
|---|
| | 30 | #include <vlc_interaction.h> |
|---|
| 30 | 31 | |
|---|
| 31 | 32 | #include <stdlib.h> |
|---|
| … | … | |
| 245 | 246 | { |
|---|
| 246 | 247 | msg_Err( p_access, "unknown file type for `%s'", psz_name ); |
|---|
| | 248 | intf_UserFatal( p_access, VLC_FALSE, _("File reading failed"), |
|---|
| | 249 | _("\"%s\"'s file type is unknown."), |
|---|
| | 250 | psz_name ); |
|---|
| 247 | 251 | free( psz_name ); |
|---|
| 248 | 252 | return VLC_EGENERIC; |
|---|
| … | … | |
| 409 | 413 | { |
|---|
| 410 | 414 | if( errno != EINTR && errno != EAGAIN ) |
|---|
| | 415 | { |
|---|
| 411 | 416 | msg_Err( p_access, "read failed (%s)", strerror(errno) ); |
|---|
| | 417 | intf_UserFatal( p_access, VLC_FALSE, _("File reading failed"), |
|---|
| | 418 | _("VLC could not read file \"%s\"."), |
|---|
| | 419 | strerror(errno) ); |
|---|
| | 420 | } |
|---|
| 412 | 421 | |
|---|
| 413 | 422 | /* Delay a bit to avoid consuming all the CPU. This is particularly |
|---|
| … | … | |
| 508 | 517 | { |
|---|
| 509 | 518 | msg_Err( p_access, "seeking too far" ); |
|---|
| | 519 | intf_UserFatal( p_access, VLC_FALSE, _("File reading failed"), |
|---|
| | 520 | _("VLC seeked in the file too far. This usually means " |
|---|
| | 521 | "that your file is broken and therefore cannot be " |
|---|
| | 522 | "played." ) ); |
|---|
| 510 | 523 | p_access->info.i_pos = p_access->info.i_size; |
|---|
| 511 | 524 | } |
|---|
| … | … | |
| 591 | 604 | { |
|---|
| 592 | 605 | msg_Err( p_access, "cannot open file %s", psz_name ); |
|---|
| | 606 | intf_UserFatal( p_access, VLC_FALSE, _("File reading failed"), |
|---|
| | 607 | _("VLC could not open file \"%s\"."), psz_name ); |
|---|
| 593 | 608 | return VLC_EGENERIC; |
|---|
| 594 | 609 | } |
|---|
| … | … | |
| 614 | 629 | msg_Err( p_access, "cannot open file %s (%s)", psz_name, |
|---|
| 615 | 630 | strerror(errno) ); |
|---|
| | 631 | intf_UserFatal( p_access, VLC_FALSE, _("File reading failed"), |
|---|
| | 632 | _("VLC could not open file \"%s\" (%s)."), |
|---|
| | 633 | psz_name, strerror(errno) ); |
|---|
| 616 | 634 | return VLC_EGENERIC; |
|---|
| 617 | 635 | } |
|---|
| r90a4cae |
r89298c1 |
|
| 30 | 30 | #include <vlc/vlc.h> |
|---|
| 31 | 31 | #include <vlc/input.h> |
|---|
| | 32 | #include <vlc_interaction.h> |
|---|
| 32 | 33 | |
|---|
| 33 | 34 | #include "network.h" |
|---|
| … | … | |
| 106 | 107 | { |
|---|
| 107 | 108 | msg_Err( p_access, "failed to connect with server" ); |
|---|
| | 109 | intf_UserFatal( p_access, VLC_FALSE, _("Network interaction failed"), |
|---|
| | 110 | _("VLC could not connect with the given server.") ); |
|---|
| 108 | 111 | return -1; |
|---|
| 109 | 112 | } |
|---|
| … | … | |
| 119 | 122 | { |
|---|
| 120 | 123 | msg_Err( p_access, "connection rejected" ); |
|---|
| | 124 | intf_UserFatal( p_access, VLC_FALSE, _("Network interaction failed"), |
|---|
| | 125 | _("VLC's connection to the given server was rejected.") ); |
|---|
| 121 | 126 | return -1; |
|---|
| 122 | 127 | } |
|---|
| … | … | |
| 177 | 182 | { |
|---|
| 178 | 183 | msg_Err( p_access, "account rejected" ); |
|---|
| | 184 | intf_UserFatal( p_access, VLC_FALSE, |
|---|
| | 185 | _("Network interaction failed"), |
|---|
| | 186 | _("Your account was rejected.") ); |
|---|
| 179 | 187 | return -1; |
|---|
| 180 | 188 | } |
|---|
| … | … | |
| 184 | 192 | default: |
|---|
| 185 | 193 | msg_Err( p_access, "password rejected" ); |
|---|
| | 194 | intf_UserFatal( p_access, VLC_FALSE, |
|---|
| | 195 | _("Network interaction failed"), |
|---|
| | 196 | _("Your password was rejected.") ); |
|---|
| 186 | 197 | return -1; |
|---|
| 187 | 198 | } |
|---|
| … | … | |
| 189 | 200 | default: |
|---|
| 190 | 201 | msg_Err( p_access, "user rejected" ); |
|---|
| | 202 | intf_UserFatal( p_access, VLC_FALSE, |
|---|
| | 203 | _("Network interaction failed"), |
|---|
| | 204 | _("Your connection attemp to the server was rejected.") ); |
|---|
| 191 | 205 | return -1; |
|---|
| 192 | 206 | } |
|---|
| r4f15591 |
r89298c1 |
|
| 27 | 27 | #include <vlc/vlc.h> |
|---|
| 28 | 28 | #include <vlc/input.h> |
|---|
| | 29 | #include <vlc_interaction.h> |
|---|
| 29 | 30 | |
|---|
| 30 | 31 | #include "network.h" |
|---|
| … | … | |
| 90 | 91 | { |
|---|
| 91 | 92 | msg_Err( p_access, "cannot connect to %s:%d", psz_server, i_port ); |
|---|
| | 93 | intf_UserFatal( p_access, VLC_FALSE, _("Connection failed"), |
|---|
| | 94 | _("VLC could not connect to \"%s:%d\"."), psz_server, i_port ); |
|---|
| 92 | 95 | return VLC_EGENERIC; |
|---|
| 93 | 96 | } |
|---|
| … | … | |
| 216 | 219 | |
|---|
| 217 | 220 | msg_Err( p_access, "rtsp session can not be established" ); |
|---|
| | 221 | intf_UserFatal( p_access, VLC_FALSE, _("Session failed"), |
|---|
| | 222 | _("The requested RTSP session could not be established.") ); |
|---|
| 218 | 223 | goto error; |
|---|
| 219 | 224 | } |
|---|
| r33b6e2a |
r89298c1 |
|
| 35 | 35 | |
|---|
| 36 | 36 | #include <vlc/aout.h> |
|---|
| | 37 | #include <vlc_interaction.h> |
|---|
| 37 | 38 | |
|---|
| 38 | 39 | #include "aout_internal.h" |
|---|
| … | … | |
| 323 | 324 | { |
|---|
| 324 | 325 | msg_Err( p_aout, "no audio device given (maybe \"default\" ?)" ); |
|---|
| | 326 | intf_UserFatal( p_aout, VLC_FALSE, _("No Audio Device"), |
|---|
| | 327 | _("No audio device name was given. You might want to " \ |
|---|
| | 328 | "enter \"default\".") ); |
|---|
| 325 | 329 | free( p_sys ); |
|---|
| 326 | 330 | return VLC_EGENERIC; |
|---|
| … | … | |
| 428 | 432 | msg_Err( p_aout, "cannot open ALSA device `%s' (%s)", |
|---|
| 429 | 433 | psz_iec_device, snd_strerror( i_snd_rc ) ); |
|---|
| | 434 | intf_UserFatal( p_aout, VLC_FALSE, _("Audio output failed"), |
|---|
| | 435 | _("VLC could not open the ALSA device \"%s\" (%s)."), |
|---|
| | 436 | psz_iec_device, snd_strerror( i_snd_rc ) ); |
|---|
| 430 | 437 | free( p_sys ); |
|---|
| 431 | 438 | free( psz_device ); |
|---|
| … | … | |
| 460 | 467 | { |
|---|
| 461 | 468 | if( i ) msleep( 100000 /* 100ms */ ); |
|---|
| 462 | | else msg_Err( p_aout, "audio device: %s is already in use", |
|---|
| | 469 | else |
|---|
| | 470 | { |
|---|
| | 471 | msg_Err( p_aout, "audio device: %s is already in use", |
|---|
| 463 | 472 | psz_device ); |
|---|
| | 473 | intf_UserFatal( p_aout, VLC_FALSE, _("Audio output failed"), |
|---|
| | 474 | _("The audio device \"%s\" is already in use."), |
|---|
| | 475 | psz_device ); |
|---|
| | 476 | } |
|---|
| 464 | 477 | continue; |
|---|
| 465 | 478 | } |
|---|
| … | … | |
| 470 | 483 | msg_Err( p_aout, "cannot open ALSA device `%s' (%s)", |
|---|
| 471 | 484 | psz_device, snd_strerror( i_snd_rc ) ); |
|---|
| | 485 | intf_UserFatal( p_aout, VLC_FALSE, _("Audio output failed"), |
|---|
| | 486 | _("VLC could not open the ALSA device \"%s\" (%s)."), |
|---|
| | 487 | psz_device, snd_strerror( i_snd_rc ) ); |
|---|
| 472 | 488 | free( p_sys ); |
|---|
| 473 | 489 | free( psz_device ); |
|---|
| r8e394d7 |
r89298c1 |
|
| 31 | 31 | #include <vlc/vlc.h> |
|---|
| 32 | 32 | #include <vlc/aout.h> |
|---|
| | 33 | #include <vlc_interaction.h> |
|---|
| 33 | 34 | |
|---|
| 34 | 35 | #include "aout_internal.h" |
|---|
| … | … | |
| 241 | 242 | { |
|---|
| 242 | 243 | msg_Err( p_aout, "Selected audio device is exclusively in use by another program." ); |
|---|
| | 244 | intf_UserFatal( p_aout, VLC_FALSE, _("Audio output failed"), |
|---|
| | 245 | _("The selected audio output device is exclusively in " |
|---|
| | 246 | "use by another program.") ); |
|---|
| 243 | 247 | goto error; |
|---|
| 244 | 248 | } |
|---|
| … | … | |
| 423 | 427 | p_aout->output.output.i_physical_channels = AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT; |
|---|
| 424 | 428 | msg_Err( p_aout, "You should configure your speaker layout with Audio Midi Setup Utility in /Applications/Utilities. Now using Stereo mode." ); |
|---|
| | 429 | intf_UserFatal( p_aout, VLC_FALSE, _("Audio device is not configured"), |
|---|
| | 430 | _("You should configure your speaker layout with " |
|---|
| | 431 | "the \"Audio Midi Setup Utility\" in /Applications/" |
|---|
| | 432 | "Utilities. Stereo mode is being used now.") ); |
|---|
| 425 | 433 | } |
|---|
| 426 | 434 | } |
|---|
| r04870f7 |
r89298c1 |
|
| 34 | 34 | #include <vlc/sout.h> |
|---|
| 35 | 35 | #include <vlc/decoder.h> |
|---|
| | 36 | #include <vlc_interaction.h> |
|---|
| 36 | 37 | |
|---|
| 37 | 38 | /* ffmpeg header */ |
|---|
| … | … | |
| 225 | 226 | { |
|---|
| 226 | 227 | msg_Err( p_enc, "\"%s\" is not a video encoder", psz_namecodec ); |
|---|
| | 228 | intf_UserFatal( p_enc, VLC_FALSE, _("Streaming / Transcoding failed"), |
|---|
| | 229 | _("\"%s\" is no video encoder."), psz_namecodec ); |
|---|
| 227 | 230 | return VLC_EGENERIC; |
|---|
| 228 | 231 | } |
|---|
| … | … | |
| 231 | 234 | { |
|---|
| 232 | 235 | msg_Err( p_enc, "\"%s\" is not an audio encoder", psz_namecodec ); |
|---|
| | 236 | intf_UserFatal( p_enc, VLC_FALSE, _("Streaming / Transcoding failed"), |
|---|
| | 237 | _("\"%s\" is no audio encoder."), psz_namecodec ); |
|---|
| 233 | 238 | return VLC_EGENERIC; |
|---|
| 234 | 239 | } |
|---|
| … | … | |
| 241 | 246 | { |
|---|
| 242 | 247 | msg_Err( p_enc, "cannot find encoder %s", psz_namecodec ); |
|---|
| | 248 | intf_UserFatal( p_enc, VLC_FALSE, _("Streaming / Transcoding failed"), |
|---|
| | 249 | _("VLC could not find encoder \"%s\"."), psz_namecodec ); |
|---|
| 243 | 250 | return VLC_EGENERIC; |
|---|
| 244 | 251 | } |
|---|
| … | … | |
| 610 | 617 | vlc_mutex_unlock( lockval.p_address ); |
|---|
| 611 | 618 | msg_Err( p_enc, "cannot open encoder" ); |
|---|
| | 619 | intf_UserFatal( p_enc, VLC_FALSE, _("Streaming / Transcoding failed"), |
|---|
| | 620 | _("VLC could not open the encoder.") ); |
|---|
| 612 | 621 | free( p_sys ); |
|---|
| 613 | 622 | return VLC_EGENERIC; |
|---|
| … | … | |
| 617 | 626 | { |
|---|
| 618 | 627 | msg_Err( p_enc, "cannot open encoder" ); |
|---|
| | 628 | intf_UserFatal( p_enc, VLC_FALSE, _("Streaming / Transcoding failed"), |
|---|
| | 629 | _("VLC could not open the encoder.") ); |
|---|
| 619 | 630 | free( p_sys ); |
|---|
| 620 | 631 | return VLC_EGENERIC; |
|---|
| r37bd471 |
r89298c1 |
|
| 29 | 29 | #include <vlc/vlc.h> |
|---|
| 30 | 30 | #include <vlc/input.h> |
|---|
| | 31 | #include <vlc_interaction.h> |
|---|
| 31 | 32 | |
|---|
| 32 | 33 | #include "vlc_meta.h" |
|---|
| … | … | |
| 165 | 166 | { |
|---|
| 166 | 167 | msg_Err( p_demux, "failed to load the new header" ); |
|---|
| | 168 | intf_UserFatal( p_demux, VLC_FALSE, _("Could not demux ASF stream"), |
|---|
| | 169 | _("VLC failed to load the ASF header.") ); |
|---|
| 167 | 170 | return 0; |
|---|
| 168 | 171 | } |
|---|
| r2d824ac |
r89298c1 |
|
| 31 | 31 | #include <vlc/input.h> |
|---|
| 32 | 32 | #include <vlc/sout.h> |
|---|
| | 33 | #include <vlc_interaction.h> |
|---|
| 33 | 34 | |
|---|
| 34 | 35 | /***************************************************************************** |
|---|
| … | … | |
| 361 | 362 | msg_Err( p_stream, "no suitable sout access module for `%s/%s://%s'", |
|---|
| 362 | 363 | psz_access, psz_mux, psz_dst ); |
|---|
| | 364 | intf_UserFatal( p_stream, VLC_FALSE, |
|---|
| | 365 | _("Streaming / Transcoding failed"), |
|---|
| | 366 | _("There is no suitable stream-output access module for \"%s/%s://%s\"."), |
|---|
| | 367 | psz_access, |
|---|
| | 368 | psz_mux, psz_dst ); |
|---|
| 363 | 369 | return( NULL ); |
|---|
| 364 | 370 | } |
|---|
| … | … | |
| 370 | 376 | msg_Err( p_stream, "no suitable sout mux module for `%s/%s://%s'", |
|---|
| 371 | 377 | psz_access, psz_mux, psz_dst ); |
|---|
| | 378 | intf_UserFatal( p_stream, VLC_FALSE, |
|---|
| | 379 | _("Streaming / Transcoding failed"), |
|---|
| | 380 | _("There is no suitable stream-output access module "\ |
|---|
| | 381 | "for \"%s/%s://%s\"."), |
|---|
| | 382 | psz_access, psz_mux, psz_dst ); |
|---|
| 372 | 383 | sout_AccessOutDelete( p_access ); |
|---|
| 373 | 384 | return( NULL ); |
|---|
| r5f18b9d |
r89298c1 |
|
| 30 | 30 | #include <vlc/vlc.h> |
|---|
| 31 | 31 | #include <vlc/vout.h> |
|---|
| | 32 | #include <vlc_interaction.h> |
|---|
| 32 | 33 | |
|---|
| 33 | 34 | #include "filter_common.h" |
|---|
| … | … | |
| 264 | 265 | { |
|---|
| 265 | 266 | msg_Err( p_vout, "failed to create vout" ); |
|---|
| | 267 | intf_UserFatal( p_vout, VLC_FALSE, _("Cropping failed"), |
|---|
| | 268 | _("VLC could not open the video output module.") ); |
|---|
| 266 | 269 | return VLC_EGENERIC; |
|---|
| 267 | 270 | } |
|---|
| … | … | |
| 341 | 344 | { |
|---|
| 342 | 345 | msg_Err( p_vout, "failed to create vout" ); |
|---|
| | 346 | intf_UserFatal( p_vout, VLC_FALSE, _("Cropping failed"), |
|---|
| | 347 | _("VLC could not open the video output module.") ); |
|---|
| 343 | 348 | return VLC_EGENERIC; |
|---|
| 344 | 349 | } |
|---|
| r2cb472d |
r89298c1 |
|
| 2 | 2 | * filters.c : audio output filters management |
|---|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | | * Copyright (C) 2002-2004 the VideoLAN team |
|---|
| | 4 | * Copyright (C) 2002-2006 the VideoLAN team |
|---|
| 5 | 5 | * $Id$ |
|---|
| 6 | 6 | * |
|---|
| … | … | |
| 29 | 29 | |
|---|
| 30 | 30 | #include <vlc/vlc.h> |
|---|
| | 31 | #include <vlc_interaction.h> |
|---|
| 31 | 32 | |
|---|
| 32 | 33 | #ifdef HAVE_ALLOCA_H |
|---|
| … | … | |
| 151 | 152 | { |
|---|
| 152 | 153 | msg_Err( p_aout, "max filter reached (%d)", AOUT_MAX_FILTERS ); |
|---|
| | 154 | intf_UserFatal( p_aout, VLC_FALSE, _("Audio filtering failed"), |
|---|
| | 155 | _("The maximum number of filters (%d) was reached."), |
|---|
| | 156 | AOUT_MAX_FILTERS ); |
|---|
| 153 | 157 | return -1; |
|---|
| 154 | 158 | } |
|---|
| … | … | |
| 195 | 199 | ReleaseFilter( pp_filters[0] ); |
|---|
| 196 | 200 | msg_Err( p_aout, "max filter reached (%d)", AOUT_MAX_FILTERS ); |
|---|
| | 201 | intf_UserFatal( p_aout, VLC_FALSE, _("Audio filtering failed"), |
|---|
| | 202 | _("The maximum number of filters (%d) was reached."), |
|---|
| | 203 | AOUT_MAX_FILTERS ); |
|---|
| 197 | 204 | return -1; |
|---|
| 198 | 205 | } |
|---|
| … | … | |
| 215 | 222 | ReleaseFilter( pp_filters[0] ); |
|---|
| 216 | 223 | msg_Err( p_aout, "max filter reached (%d)", AOUT_MAX_FILTERS ); |
|---|
| | 224 | intf_UserFatal( p_aout, VLC_FALSE, _("Audio filtering failed"), |
|---|
| | 225 | _("The maximum number of filters (%d) was reached."), |
|---|
| | 226 | AOUT_MAX_FILTERS ); |
|---|
| 217 | 227 | return -1; |
|---|
| 218 | 228 | } |
|---|
| ra757f6a |
r89298c1 |
|
| 33 | 33 | #include <vlc/vout.h> |
|---|
| 34 | 34 | #include <vlc/input.h> |
|---|
| | 35 | #include <vlc_interaction.h> |
|---|
| 35 | 36 | |
|---|
| 36 | 37 | #include "stream_output.h" |
|---|
| … | … | |
| 110 | 111 | { |
|---|
| 111 | 112 | msg_Err( p_input, "could not create packetizer" ); |
|---|
| | 113 | intf_UserFatal( p_input, VLC_FALSE, _("Streaming / Transcoding failed"), |
|---|
| | 114 | _("VLC could not open the packetizer module.") ); |
|---|
| 112 | 115 | return NULL; |
|---|
| 113 | 116 | } |
|---|
| … | … | |
| 120 | 123 | { |
|---|
| 121 | 124 | msg_Err( p_input, "could not create decoder" ); |
|---|
| | 125 | intf_UserFatal( p_input, VLC_FALSE, _("Streaming / Transcoding failed"), |
|---|
| | 126 | _("VLC could not open the decoder module.") ); |
|---|
| 122 | 127 | return NULL; |
|---|
| 123 | 128 | } |
|---|
| … | … | |
| 129 | 134 | "VLC probably does not support this sound or video format.", |
|---|
| 130 | 135 | (char*)&p_dec->fmt_in.i_codec ); |
|---|
| | 136 | intf_UserFatal( p_dec, VLC_FALSE, _("No suitable decoder module " |
|---|
| | 137 | "for FOURCC \"4.4s\" found"), _("VLC probably does not support this " |
|---|
| | 138 | "audio or video format. Regrettably, there is no way for you to " |
|---|
| | 139 | "fix this.") ); |
|---|
| 131 | 140 | |
|---|
| 132 | 141 | DeleteDecoder( p_dec ); |
|---|