Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
cf09f019
Commit
cf09f019
authored
Mar 05, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use dialog_Fatal, fix a bunch (but not all) interaction crashes
parent
bde4f0ba
Changes
20
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
84 additions
and
84 deletions
+84
-84
modules/access/cdda/access.c
modules/access/cdda/access.c
+3
-3
modules/access/dshow/dshow.cpp
modules/access/dshow/dshow.cpp
+3
-3
modules/access/dvb/access.c
modules/access/dvb/access.c
+2
-1
modules/access/dvdnav.c
modules/access/dvdnav.c
+2
-2
modules/access/dvdread.c
modules/access/dvdread.c
+3
-3
modules/access/file.c
modules/access/file.c
+5
-5
modules/access/ftp.c
modules/access/ftp.c
+6
-8
modules/access/mmap.c
modules/access/mmap.c
+2
-2
modules/access/mtp.c
modules/access/mtp.c
+3
-3
modules/access/rtsp/access.c
modules/access/rtsp/access.c
+3
-3
modules/audio_output/alsa.c
modules/audio_output/alsa.c
+5
-5
modules/audio_output/auhal.c
modules/audio_output/auhal.c
+3
-3
modules/codec/avcodec/encoder.c
modules/codec/avcodec/encoder.c
+6
-6
modules/demux/asf/asf.c
modules/demux/asf/asf.c
+2
-2
modules/misc/audioscrobbler.c
modules/misc/audioscrobbler.c
+3
-2
modules/stream_out/es.c
modules/stream_out/es.c
+3
-3
modules/video_filter/crop.c
modules/video_filter/crop.c
+3
-3
src/audio_output/filters.c
src/audio_output/filters.c
+10
-10
src/input/decoder.c
src/input/decoder.c
+11
-10
src/input/input.c
src/input/input.c
+6
-7
No files found.
modules/access/cdda/access.c
View file @
cf09f019
...
@@ -30,8 +30,8 @@
...
@@ -30,8 +30,8 @@
#include "cdda.h"
/* private structures. Also #includes vlc things */
#include "cdda.h"
/* private structures. Also #includes vlc things */
#include "info.h"
/* headers for meta info retrieval */
#include "info.h"
/* headers for meta info retrieval */
#include "access.h"
#include "access.h"
#include
"vlc_keys.h"
#include
<vlc_keys.h>
#include <vlc_
interface
.h>
#include <vlc_
dialog
.h>
#include <cdio/cdio.h>
#include <cdio/cdio.h>
#include <cdio/logging.h>
#include <cdio/logging.h>
...
@@ -282,7 +282,7 @@ static block_t * CDDAReadBlocks( access_t * p_access )
...
@@ -282,7 +282,7 @@ static block_t * CDDAReadBlocks( access_t * p_access )
{
{
msg_Err
(
p_access
,
"cannot get a new block of size: %i"
,
msg_Err
(
p_access
,
"cannot get a new block of size: %i"
,
i_blocks
*
CDIO_CD_FRAMESIZE_RAW
);
i_blocks
*
CDIO_CD_FRAMESIZE_RAW
);
intf_UserFatal
(
p_access
,
false
,
_
(
"CD reading failed"
),
dialog_Fatal
(
p_access
,
_
(
"CD reading failed"
),
_
(
"VLC could not get a new block of size: %i."
),
_
(
"VLC could not get a new block of size: %i."
),
i_blocks
*
CDIO_CD_FRAMESIZE_RAW
);
i_blocks
*
CDIO_CD_FRAMESIZE_RAW
);
return
NULL
;
return
NULL
;
...
...
modules/access/dshow/dshow.cpp
View file @
cf09f019
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
#include <vlc_access.h>
#include <vlc_access.h>
#include <vlc_demux.h>
#include <vlc_demux.h>
#include <vlc_vout.h>
#include <vlc_vout.h>
#include <vlc_
interface
.h>
#include <vlc_
dialog
.h>
#include "common.h"
#include "common.h"
#include "filter.h"
#include "filter.h"
...
@@ -975,7 +975,7 @@ static int OpenDevice( vlc_object_t *p_this, access_sys_t *p_sys,
...
@@ -975,7 +975,7 @@ static int OpenDevice( vlc_object_t *p_this, access_sys_t *p_sys,
{
{
msg_Err
(
p_this
,
"can't use device: %s, unsupported device type"
,
msg_Err
(
p_this
,
"can't use device: %s, unsupported device type"
,
devicename
.
c_str
()
);
devicename
.
c_str
()
);
intf_UserFatal
(
p_this
,
false
,
_
(
"Capturing
failed"
),
dialog_Fatal
(
p_this
,
_
(
"Capture
failed"
),
_
(
"VLC cannot use the device
\"
%s
\"
, because its "
_
(
"VLC cannot use the device
\"
%s
\"
, because its "
"type is not supported."
)
);
"type is not supported."
)
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
...
@@ -1028,7 +1028,7 @@ static int OpenDevice( vlc_object_t *p_this, access_sys_t *p_sys,
...
@@ -1028,7 +1028,7 @@ static int OpenDevice( vlc_object_t *p_this, access_sys_t *p_sys,
else
{
else
{
/* capture device */
/* capture device */
msg_Err
(
p_this
,
"capture device '%s' does not support required parameters !"
,
devicename
.
c_str
()
);
msg_Err
(
p_this
,
"capture device '%s' does not support required parameters !"
,
devicename
.
c_str
()
);
intf_UserFatal
(
p_this
,
false
,
_
(
"Capturing
failed"
),
dialog_Fatal
(
p_this
,
_
(
"Capture
failed"
),
_
(
"The capture device
\"
%s
\"
does not support the "
_
(
"The capture device
\"
%s
\"
does not support the "
"required parameters."
),
devicename
.
c_str
()
);
"required parameters."
),
devicename
.
c_str
()
);
p_device_filter
->
Release
();
p_device_filter
->
Release
();
...
...
modules/access/dvb/access.c
View file @
cf09f019
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
#include <vlc_access.h>
#include <vlc_access.h>
#include <vlc_input.h>
#include <vlc_input.h>
#include <vlc_interface.h>
#include <vlc_interface.h>
#include <vlc_dialog.h>
#ifdef HAVE_UNISTD_H
#ifdef HAVE_UNISTD_H
# include <unistd.h>
# include <unistd.h>
...
@@ -982,7 +983,7 @@ static int ParseMRL( access_t *p_access )
...
@@ -982,7 +983,7 @@ static int ParseMRL( access_t *p_access )
else
else
{
{
msg_Err
(
p_access
,
"illegal polarization %c"
,
*
psz_parser
);
msg_Err
(
p_access
,
"illegal polarization %c"
,
*
psz_parser
);
intf_UserFatal
(
p_access
,
false
,
_
(
"Illegal P
olarization"
),
dialog_Fatal
(
p_access
,
_
(
"Invalid p
olarization"
),
_
(
"The provided polarization
\"
%c
\"
is not valid."
),
_
(
"The provided polarization
\"
%c
\"
is not valid."
),
*
psz_parser
);
*
psz_parser
);
free
(
psz_dup
);
free
(
psz_dup
);
...
...
modules/access/dvdnav.c
View file @
cf09f019
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
#include <vlc_demux.h>
#include <vlc_demux.h>
#include <vlc_charset.h>
#include <vlc_charset.h>
#include <vlc_
interface
.h>
#include <vlc_
dialog
.h>
#ifdef HAVE_UNISTD_H
#ifdef HAVE_UNISTD_H
# include <unistd.h>
# include <unistd.h>
...
@@ -308,7 +308,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -308,7 +308,7 @@ static int Open( vlc_object_t *p_this )
if
(
dvdnav_title_play
(
p_sys
->
dvdnav
,
1
)
!=
DVDNAV_STATUS_OK
)
if
(
dvdnav_title_play
(
p_sys
->
dvdnav
,
1
)
!=
DVDNAV_STATUS_OK
)
{
{
msg_Err
(
p_demux
,
"cannot set title (can't decrypt DVD?)"
);
msg_Err
(
p_demux
,
"cannot set title (can't decrypt DVD?)"
);
intf_UserFatal
(
p_demux
,
false
,
_
(
"Playback failure"
),
dialog_Fatal
(
p_demux
,
_
(
"Playback failure"
),
_
(
"VLC cannot set the DVD's title. It possibly "
_
(
"VLC cannot set the DVD's title. It possibly "
"cannot decrypt the entire disc."
)
);
"cannot decrypt the entire disc."
)
);
dvdnav_close
(
p_sys
->
dvdnav
);
dvdnav_close
(
p_sys
->
dvdnav
);
...
...
modules/access/dvdread.c
View file @
cf09f019
...
@@ -35,8 +35,8 @@
...
@@ -35,8 +35,8 @@
#include <vlc_input.h>
#include <vlc_input.h>
#include <vlc_access.h>
#include <vlc_access.h>
#include <vlc_charset.h>
#include <vlc_charset.h>
#include <vlc_interface.h>
#include <vlc_interface.h>
#include <vlc_dialog.h>
#include <vlc_iso_lang.h>
#include <vlc_iso_lang.h>
...
@@ -248,7 +248,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -248,7 +248,7 @@ static int Open( vlc_object_t *p_this )
if
(
!
(
p_dvdread
=
DVDOpen
(
psz_name
))
)
if
(
!
(
p_dvdread
=
DVDOpen
(
psz_name
))
)
{
{
msg_Err
(
p_demux
,
"DVDRead cannot open source: %s"
,
psz_name
);
msg_Err
(
p_demux
,
"DVDRead cannot open source: %s"
,
psz_name
);
intf_UserFatal
(
p_demux
,
false
,
_
(
"Playback failure"
),
dialog_Fatal
(
p_demux
,
_
(
"Playback failure"
),
_
(
"DVDRead could not open the disc
\"
%s
\"
."
),
psz_name
);
_
(
"DVDRead could not open the disc
\"
%s
\"
."
),
psz_name
);
free
(
psz_name
);
free
(
psz_name
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
...
@@ -570,7 +570,7 @@ static int Demux( demux_t *p_demux )
...
@@ -570,7 +570,7 @@ static int Demux( demux_t *p_demux )
{
{
msg_Err
(
p_demux
,
"read failed for %d/%d blocks at 0x%02x"
,
msg_Err
(
p_demux
,
"read failed for %d/%d blocks at 0x%02x"
,
i_read
,
i_blocks_once
,
p_sys
->
i_cur_block
);
i_read
,
i_blocks_once
,
p_sys
->
i_cur_block
);
intf_UserFatal
(
p_demux
,
false
,
_
(
"Playback failure"
),
dialog_Fatal
(
p_demux
,
_
(
"Playback failure"
),
_
(
"DVDRead could not read %d/%d blocks at 0x%02x."
),
_
(
"DVDRead could not read %d/%d blocks at 0x%02x."
),
i_read
,
i_blocks_once
,
p_sys
->
i_cur_block
);
i_read
,
i_blocks_once
,
p_sys
->
i_cur_block
);
return
-
1
;
return
-
1
;
...
...
modules/access/file.c
View file @
cf09f019
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
#include <vlc_plugin.h>
#include <vlc_plugin.h>
#include <vlc_input.h>
#include <vlc_input.h>
#include <vlc_access.h>
#include <vlc_access.h>
#include <vlc_
interface
.h>
#include <vlc_
dialog
.h>
#include <assert.h>
#include <assert.h>
#include <errno.h>
#include <errno.h>
...
@@ -222,7 +222,7 @@ static ssize_t Read( access_t *p_access, uint8_t *p_buffer, size_t i_len )
...
@@ -222,7 +222,7 @@ static ssize_t Read( access_t *p_access, uint8_t *p_buffer, size_t i_len )
default:
default:
msg_Err
(
p_access
,
"failed to read (%m)"
);
msg_Err
(
p_access
,
"failed to read (%m)"
);
intf_UserFatal
(
p_access
,
false
,
_
(
"File reading failed"
),
dialog_Fatal
(
p_access
,
_
(
"File reading failed"
),
_
(
"VLC could not read the file."
));
_
(
"VLC could not read the file."
));
p_access
->
info
.
b_eof
=
true
;
p_access
->
info
.
b_eof
=
true
;
return
0
;
return
0
;
...
@@ -342,7 +342,7 @@ static int open_file (access_t *p_access, const char *path)
...
@@ -342,7 +342,7 @@ static int open_file (access_t *p_access, const char *path)
if
(
fd
==
-
1
)
if
(
fd
==
-
1
)
{
{
msg_Err
(
p_access
,
"cannot open file %s (%m)"
,
path
);
msg_Err
(
p_access
,
"cannot open file %s (%m)"
,
path
);
intf_UserFatal
(
p_access
,
false
,
_
(
"File reading failed"
),
dialog_Fatal
(
p_access
,
_
(
"File reading failed"
),
_
(
"VLC could not open the file
\"
%s
\"
."
),
path
);
_
(
"VLC could not open the file
\"
%s
\"
."
),
path
);
return
-
1
;
return
-
1
;
}
}
...
...
modules/access/ftp.c
View file @
cf09f019
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
#include <assert.h>
#include <assert.h>
#include <vlc_access.h>
#include <vlc_access.h>
#include <vlc_
interface
.h>
#include <vlc_
dialog
.h>
#include <vlc_network.h>
#include <vlc_network.h>
#include <vlc_url.h>
#include <vlc_url.h>
...
@@ -133,7 +133,7 @@ static int Login( vlc_object_t *p_access, access_sys_t *p_sys )
...
@@ -133,7 +133,7 @@ static int Login( vlc_object_t *p_access, access_sys_t *p_sys )
if
(
fd
==
-
1
)
if
(
fd
==
-
1
)
{
{
msg_Err
(
p_access
,
"connection failed"
);
msg_Err
(
p_access
,
"connection failed"
);
intf_UserFatal
(
p_access
,
false
,
_
(
"Network interaction failed"
),
dialog_Fatal
(
p_access
,
_
(
"Network interaction failed"
),
_
(
"VLC could not connect with the given server."
)
);
_
(
"VLC could not connect with the given server."
)
);
return
-
1
;
return
-
1
;
}
}
...
@@ -143,7 +143,7 @@ static int Login( vlc_object_t *p_access, access_sys_t *p_sys )
...
@@ -143,7 +143,7 @@ static int Login( vlc_object_t *p_access, access_sys_t *p_sys )
if
(
i_answer
/
100
!=
2
)
if
(
i_answer
/
100
!=
2
)
{
{
msg_Err
(
p_access
,
"connection rejected"
);
msg_Err
(
p_access
,
"connection rejected"
);
intf_UserFatal
(
p_access
,
false
,
_
(
"Network interaction failed"
),
dialog_Fatal
(
p_access
,
_
(
"Network interaction failed"
),
_
(
"VLC's connection to the given server was rejected."
)
);
_
(
"VLC's connection to the given server was rejected."
)
);
return
-
1
;
return
-
1
;
}
}
...
@@ -207,7 +207,7 @@ static int Login( vlc_object_t *p_access, access_sys_t *p_sys )
...
@@ -207,7 +207,7 @@ static int Login( vlc_object_t *p_access, access_sys_t *p_sys )
if
(
i_answer
/
100
!=
2
)
if
(
i_answer
/
100
!=
2
)
{
{
msg_Err
(
p_access
,
"account rejected"
);
msg_Err
(
p_access
,
"account rejected"
);
intf_UserFatal
(
p_access
,
false
,
dialog_Fatal
(
p_access
,
_
(
"Network interaction failed"
),
_
(
"Network interaction failed"
),
_
(
"Your account was rejected."
)
);
_
(
"Your account was rejected."
)
);
return
-
1
;
return
-
1
;
...
@@ -217,16 +217,14 @@ static int Login( vlc_object_t *p_access, access_sys_t *p_sys )
...
@@ -217,16 +217,14 @@ static int Login( vlc_object_t *p_access, access_sys_t *p_sys )
default:
default:
msg_Err
(
p_access
,
"password rejected"
);
msg_Err
(
p_access
,
"password rejected"
);
intf_UserFatal
(
p_access
,
false
,
dialog_Fatal
(
p_access
,
_
(
"Network interaction failed"
),
_
(
"Network interaction failed"
),
_
(
"Your password was rejected."
)
);
_
(
"Your password was rejected."
)
);
return
-
1
;
return
-
1
;
}
}
break
;
break
;
default:
default:
msg_Err
(
p_access
,
"user rejected"
);
msg_Err
(
p_access
,
"user rejected"
);
intf_UserFatal
(
p_access
,
false
,
dialog_Fatal
(
p_access
,
_
(
"Network interaction failed"
),
_
(
"Network interaction failed"
),
_
(
"Your connection attempt to the server was rejected."
)
);
_
(
"Your connection attempt to the server was rejected."
)
);
return
-
1
;
return
-
1
;
}
}
...
...
modules/access/mmap.c
View file @
cf09f019
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
#include <vlc_access.h>
#include <vlc_access.h>
#include <vlc_input.h>
#include <vlc_input.h>
#include <vlc_charset.h>
#include <vlc_charset.h>
#include <vlc_
interface
.h>
#include <vlc_
dialog
.h>
#include <assert.h>
#include <assert.h>
...
@@ -226,7 +226,7 @@ static block_t *Block (access_t *p_access)
...
@@ -226,7 +226,7 @@ static block_t *Block (access_t *p_access)
if
(
addr
==
MAP_FAILED
)
if
(
addr
==
MAP_FAILED
)
{
{
msg_Err
(
p_access
,
"memory mapping failed (%m)"
);
msg_Err
(
p_access
,
"memory mapping failed (%m)"
);
intf_UserFatal
(
p_access
,
false
,
_
(
"File reading failed"
),
dialog_Fatal
(
p_access
,
_
(
"File reading failed"
),
_
(
"VLC could not read the file."
));
_
(
"VLC could not read the file."
));
goto
fatal
;
goto
fatal
;
}
}
...
...
modules/access/mtp.c
View file @
cf09f019
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
#include <vlc_plugin.h>
#include <vlc_plugin.h>
#include <vlc_input.h>
#include <vlc_input.h>
#include <vlc_access.h>
#include <vlc_access.h>
#include <vlc_
interface
.h>
#include <vlc_
dialog
.h>
#include <assert.h>
#include <assert.h>
#include <errno.h>
#include <errno.h>
...
@@ -215,7 +215,7 @@ static ssize_t Read( access_t *p_access, uint8_t *p_buffer, size_t i_len )
...
@@ -215,7 +215,7 @@ static ssize_t Read( access_t *p_access, uint8_t *p_buffer, size_t i_len )
default:
default:
msg_Err
(
p_access
,
"read failed (%m)"
);
msg_Err
(
p_access
,
"read failed (%m)"
);
intf_UserFatal
(
p_access
,
false
,
_
(
"File reading failed"
),
dialog_Fatal
(
p_access
,
_
(
"File reading failed"
),
_
(
"VLC could not read the file."
)
);
_
(
"VLC could not read the file."
)
);
p_access
->
info
.
b_eof
=
true
;
p_access
->
info
.
b_eof
=
true
;
return
0
;
return
0
;
...
@@ -303,7 +303,7 @@ static int open_file( access_t *p_access, const char *path )
...
@@ -303,7 +303,7 @@ static int open_file( access_t *p_access, const char *path )
if
(
fd
==
-
1
)
if
(
fd
==
-
1
)
{
{
msg_Err
(
p_access
,
"cannot open file %s (%m)"
,
path
);
msg_Err
(
p_access
,
"cannot open file %s (%m)"
,
path
);
intf_UserFatal
(
p_access
,
false
,
_
(
"File reading failed"
),
dialog_Fatal
(
p_access
,
_
(
"File reading failed"
),
_
(
"VLC could not open the file
\"
%s
\"
."
),
path
);
_
(
"VLC could not open the file
\"
%s
\"
."
),
path
);
return
-
1
;
return
-
1
;
}
}
...
...
modules/access/rtsp/access.c
View file @
cf09f019
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
#include <vlc_common.h>
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_plugin.h>
#include <vlc_access.h>
#include <vlc_access.h>
#include <vlc_
interface
.h>
#include <vlc_
dialog
.h>
#include <vlc_network.h>
#include <vlc_network.h>
#include "rtsp.h"
#include "rtsp.h"
...
@@ -95,7 +95,7 @@ static int RtspConnect( void *p_userdata, char *psz_server, int i_port )
...
@@ -95,7 +95,7 @@ static int RtspConnect( void *p_userdata, char *psz_server, int i_port )
if
(
p_sys
->
fd
<
0
)
if
(
p_sys
->
fd
<
0
)
{
{
msg_Err
(
p_access
,
"cannot connect to %s:%d"
,
psz_server
,
i_port
);
msg_Err
(
p_access
,
"cannot connect to %s:%d"
,
psz_server
,
i_port
);
intf_UserFatal
(
p_access
,
false
,
_
(
"Connection failed"
),
dialog_Fatal
(
p_access
,
_
(
"Connection failed"
),
_
(
"VLC could not connect to
\"
%s:%d
\"
."
),
psz_server
,
i_port
);
_
(
"VLC could not connect to
\"
%s:%d
\"
."
),
psz_server
,
i_port
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
@@ -236,7 +236,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -236,7 +236,7 @@ static int Open( vlc_object_t *p_this )
msg_Err
(
p_access
,
"rtsp session can not be established"
);
msg_Err
(
p_access
,
"rtsp session can not be established"
);
intf_UserFatal
(
p_access
,
false
,
_
(
"Session failed"
),
dialog_Fatal
(
p_access
,
_
(
"Session failed"
),
_
(
"The requested RTSP session could not be established."
)
);
_
(
"The requested RTSP session could not be established."
)
);
goto
error
;
goto
error
;
}
}
...
...
modules/audio_output/alsa.c
View file @
cf09f019
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
#include <vlc_plugin.h>
#include <vlc_plugin.h>
#include <errno.h>
/* ENOMEM */
#include <errno.h>
/* ENOMEM */
#include <vlc_
interface
.h>
#include <vlc_
dialog
.h>
#include <vlc_aout.h>
#include <vlc_aout.h>
...
@@ -324,7 +324,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -324,7 +324,7 @@ static int Open( vlc_object_t *p_this )
if
(
(
psz_device
=
config_GetPsz
(
p_aout
,
"alsa-audio-device"
))
==
NULL
)
if
(
(
psz_device
=
config_GetPsz
(
p_aout
,
"alsa-audio-device"
))
==
NULL
)
{
{
msg_Err
(
p_aout
,
"no audio device given (maybe
\"
default
\"
?)"
);
msg_Err
(
p_aout
,
"no audio device given (maybe
\"
default
\"
?)"
);
intf_UserFatal
(
p_aout
,
false
,
_
(
"No Audio Device"
),
dialog_Fatal
(
p_aout
,
_
(
"No Audio Device"
),
_
(
"No audio device name was given. You might want to "
\
_
(
"No audio device name was given. You might want to "
\
"enter
\"
default
\"
."
)
);
"enter
\"
default
\"
."
)
);
free
(
p_sys
);
free
(
p_sys
);
...
@@ -432,7 +432,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -432,7 +432,7 @@ static int Open( vlc_object_t *p_this )
{
{
msg_Err
(
p_aout
,
"cannot open ALSA device `%s' (%s)"
,
msg_Err
(
p_aout
,
"cannot open ALSA device `%s' (%s)"
,
psz_iec_device
,
snd_strerror
(
i_snd_rc
)
);
psz_iec_device
,
snd_strerror
(
i_snd_rc
)
);
intf_UserFatal
(
p_aout
,
false
,
_
(
"Audio output failed"
),
dialog_Fatal
(
p_aout
,
_
(
"Audio output failed"
),
_
(
"VLC could not open the ALSA device
\"
%s
\"
(%s)."
),
_
(
"VLC could not open the ALSA device
\"
%s
\"
(%s)."
),
psz_iec_device
,
snd_strerror
(
i_snd_rc
)
);
psz_iec_device
,
snd_strerror
(
i_snd_rc
)
);
free
(
p_sys
);
free
(
p_sys
);
...
@@ -471,7 +471,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -471,7 +471,7 @@ static int Open( vlc_object_t *p_this )
{
{
msg_Err
(
p_aout
,
"audio device: %s is already in use"
,
msg_Err
(
p_aout
,
"audio device: %s is already in use"
,
psz_device
);
psz_device
);
intf_UserFatal
(
p_aout
,
false
,
_
(
"Audio output failed"
),
dialog_Fatal
(
p_aout
,
_
(
"Audio output failed"
),
_
(
"The audio device
\"
%s
\"
is already in use."
),
_
(
"The audio device
\"
%s
\"
is already in use."
),
psz_device
);
psz_device
);
}
}
...
@@ -483,7 +483,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -483,7 +483,7 @@ static int Open( vlc_object_t *p_this )
{
{
msg_Err
(
p_aout
,
"cannot open ALSA device `%s' (%s)"
,
msg_Err
(
p_aout
,
"cannot open ALSA device `%s' (%s)"
,
psz_device
,
snd_strerror
(
i_snd_rc
)
);
psz_device
,
snd_strerror
(
i_snd_rc
)
);
intf_UserFatal
(
p_aout
,
false
,
_
(
"Audio output failed"
),
dialog_Fatal
(
p_aout
,
_
(
"Audio output failed"
),
_
(
"VLC could not open the ALSA device
\"
%s
\"
(%s)."
),
_
(
"VLC could not open the ALSA device
\"
%s
\"
(%s)."
),
psz_device
,
snd_strerror
(
i_snd_rc
)
);
psz_device
,
snd_strerror
(
i_snd_rc
)
);
free
(
p_sys
);
free
(
p_sys
);
...
...
modules/audio_output/auhal.c
View file @
cf09f019
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
#include <vlc_common.h>
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_plugin.h>
#include <vlc_
interface
.h>
#include <vlc_
dialog
.h>
#include <vlc_aout.h>
#include <vlc_aout.h>
#include <CoreAudio/CoreAudio.h>
#include <CoreAudio/CoreAudio.h>
...
@@ -243,7 +243,7 @@ static int Open( vlc_object_t * p_this )
...
@@ -243,7 +243,7 @@ static int Open( vlc_object_t * p_this )
if
(
p_sys
->
i_hog_pid
!=
-
1
&&
p_sys
->
i_hog_pid
!=
getpid
()
)
if
(
p_sys
->
i_hog_pid
!=
-
1
&&
p_sys
->
i_hog_pid
!=
getpid
()
)
{
{
msg_Err
(
p_aout
,
"Selected audio device is exclusively in use by another program."
);
msg_Err
(
p_aout
,
"Selected audio device is exclusively in use by another program."
);
intf_UserFatal
(
p_aout
,
false
,
_
(
"Audio output failed"
),
dialog_Fatal
(
p_aout
,
_
(
"Audio output failed"
),
_
(
"The selected audio output device is exclusively in "
_
(
"The selected audio output device is exclusively in "
"use by another program."
)
);
"use by another program."
)
);
goto
error
;
goto
error
;
...
@@ -428,7 +428,7 @@ static int OpenAnalog( aout_instance_t *p_aout )
...
@@ -428,7 +428,7 @@ static int OpenAnalog( aout_instance_t *p_aout )
{
{
p_aout
->
output
.
output
.
i_physical_channels
=
AOUT_CHAN_LEFT
|
AOUT_CHAN_RIGHT
;
p_aout
->
output
.
output
.
i_physical_channels
=
AOUT_CHAN_LEFT
|
AOUT_CHAN_RIGHT
;
msg_Err
(
p_aout
,
"You should configure your speaker layout with Audio Midi Setup Utility in /Applications/Utilities. Now using Stereo mode."
);
msg_Err
(
p_aout
,
"You should configure your speaker layout with Audio Midi Setup Utility in /Applications/Utilities. Now using Stereo mode."
);
intf_UserFatal
(
p_aout
,
false
,
_
(
"Audio device is not configured"
),
dialog_Fatal
(
p_aout
,
_
(
"Audio device is not configured"
),
_
(
"You should configure your speaker layout with "
_
(
"You should configure your speaker layout with "
"the
\"
Audio Midi Setup
\"
utility in /Applications/"
"the
\"
Audio Midi Setup
\"
utility in /Applications/"
"Utilities. Stereo mode is being used now."
)
);
"Utilities. Stereo mode is being used now."
)
);
...
...
modules/codec/avcodec/encoder.c
View file @
cf09f019
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
#include <vlc_aout.h>
#include <vlc_aout.h>
#include <vlc_sout.h>
#include <vlc_sout.h>
#include <vlc_codec.h>
#include <vlc_codec.h>
#include <vlc_
interface
.h>
#include <vlc_
dialog
.h>
/* ffmpeg header */
/* ffmpeg header */
#define HAVE_MMX 1
#define HAVE_MMX 1
...
@@ -223,7 +223,7 @@ int OpenEncoder( vlc_object_t *p_this )
...
@@ -223,7 +223,7 @@ int OpenEncoder( vlc_object_t *p_this )
if
(
p_enc
->
fmt_out
.
i_cat
==
VIDEO_ES
&&
i_cat
!=
VIDEO_ES
)
if
(
p_enc
->
fmt_out
.
i_cat
==
VIDEO_ES
&&
i_cat
!=
VIDEO_ES
)
{
{
msg_Err
(
p_enc
,
"
\"
%s
\"
is not a video encoder"
,
psz_namecodec
);
msg_Err
(
p_enc
,
"
\"
%s
\"
is not a video encoder"
,
psz_namecodec
);
intf_UserFatal
(
p_enc
,
false
,
_
(
"Streaming / Transcoding failed"
),
dialog_Fatal
(
p_enc
,
_
(
"Streaming / Transcoding failed"
),
_
(
"
\"
%s
\"
is no video encoder."
),
psz_namecodec
);
_
(
"
\"
%s
\"
is no video encoder."
),
psz_namecodec
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
@@ -231,7 +231,7 @@ int OpenEncoder( vlc_object_t *p_this )
...
@@ -231,7 +231,7 @@ int OpenEncoder( vlc_object_t *p_this )
if
(
p_enc
->
fmt_out
.
i_cat
==
AUDIO_ES
&&
i_cat
!=
AUDIO_ES
)
if
(
p_enc
->
fmt_out
.
i_cat
==
AUDIO_ES
&&
i_cat
!=
AUDIO_ES
)
{
{
msg_Err
(
p_enc
,
"
\"
%s
\"
is not an audio encoder"
,
psz_namecodec
);
msg_Err
(
p_enc
,
"
\"
%s
\"
is not an audio encoder"
,
psz_namecodec
);
intf_UserFatal
(
p_enc
,
false
,
_
(
"Streaming / Transcoding failed"
),
dialog_Fatal
(
p_enc
,
_
(
"Streaming / Transcoding failed"
),
_
(
"
\"
%s
\"
is no audio encoder."
),
psz_namecodec
);
_
(
"
\"
%s
\"
is no audio encoder."
),
psz_namecodec
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
@@ -247,7 +247,7 @@ int OpenEncoder( vlc_object_t *p_this )
...
@@ -247,7 +247,7 @@ int OpenEncoder( vlc_object_t *p_this )
"*** Please check with your FFMPEG packager. ***
\n
"
"*** Please check with your FFMPEG packager. ***
\n
"
"*** This is NOT a VLC media player issue. ***"
,
psz_namecodec
);
"*** This is NOT a VLC media player issue. ***"
,
psz_namecodec
);
intf_UserFatal
(
p_enc
,
false
,
_
(
"Streaming / Transcoding failed"
),
_
(
dialog_Fatal
(
p_enc
,
_
(
"Streaming / Transcoding failed"
),
_
(
/* I have had enough of all these MPEG-3 transcoding bug reports.
/* I have had enough of all these MPEG-3 transcoding bug reports.
* Downstream packager, you had better not patch this out, or I will be really
* Downstream packager, you had better not patch this out, or I will be really
* annoyed. Think about it - you don't want to fork the VLC translation files,
* annoyed. Think about it - you don't want to fork the VLC translation files,
...
@@ -673,7 +673,7 @@ int OpenEncoder( vlc_object_t *p_this )
...
@@ -673,7 +673,7 @@ int OpenEncoder( vlc_object_t *p_this )
{
{
vlc_mutex_unlock
(
&
avcodec_lock
);
vlc_mutex_unlock
(
&
avcodec_lock
);
msg_Err
(
p_enc
,
"cannot open encoder"
);
msg_Err
(
p_enc
,
"cannot open encoder"
);
intf_UserFatal
(
p_enc
,
false
,
dialog_Fatal
(
p_enc
,
_
(
"Streaming / Transcoding failed"
),
_
(
"Streaming / Transcoding failed"
),
_
(
"VLC could not open the encoder."
)
);
_
(
"VLC could not open the encoder."
)
);
free
(
p_sys
);
free
(
p_sys
);
...
@@ -683,7 +683,7 @@ int OpenEncoder( vlc_object_t *p_this )
...
@@ -683,7 +683,7 @@ int OpenEncoder( vlc_object_t *p_this )
else
else
{
{
msg_Err
(
p_enc
,
"cannot open encoder"
);
msg_Err
(
p_enc
,
"cannot open encoder"
);
intf_UserFatal
(
p_enc
,
false
,
_
(
"Streaming / Transcoding failed"
),
dialog_Fatal
(
p_enc
,
_
(
"Streaming / Transcoding failed"
),
_
(
"VLC could not open the encoder."
)
);
_
(
"VLC could not open the encoder."
)
);
free
(
p_sys
);
free
(
p_sys
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
...
...
modules/demux/asf/asf.c
View file @
cf09f019
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
#include <vlc_common.h>
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_plugin.h>
#include <vlc_demux.h>
#include <vlc_demux.h>
#include <vlc_
interface
.h>
#include <vlc_
dialog
.h>
#include <vlc_meta.h>
#include <vlc_meta.h>
#include <vlc_access.h>
/* GET_PRIVATE_ID_STATE */
#include <vlc_access.h>
/* GET_PRIVATE_ID_STATE */
...
@@ -175,7 +175,7 @@ static int Demux( demux_t *p_demux )
...
@@ -175,7 +175,7 @@ static int Demux( demux_t *p_demux )
if
(
DemuxInit
(
p_demux
)
)
if
(
DemuxInit
(
p_demux
)
)
{
{
msg_Err
(
p_demux
,
"failed to load the new header"
);
msg_Err
(
p_demux
,
"failed to load the new header"
);
intf_UserFatal
(
p_demux
,
false
,
_
(
"Could not demux ASF stream"
),
dialog_Fatal
(
p_demux
,
_
(
"Could not demux ASF stream"
),
_
(
"VLC failed to load the ASF header."
)
);
_
(
"VLC failed to load the ASF header."
)
);
return
0
;
return
0
;
}
}
...
...
modules/misc/audioscrobbler.c
View file @
cf09f019
...
@@ -42,6 +42,7 @@
...
@@ -42,6 +42,7 @@
#include <vlc_common.h>
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_plugin.h>
#include <vlc_interface.h>
#include <vlc_interface.h>
#include <vlc_dialog.h>
#include <vlc_meta.h>
#include <vlc_meta.h>
#include <vlc_md5.h>
#include <vlc_md5.h>
#include <vlc_stream.h>
#include <vlc_stream.h>
...
@@ -288,7 +289,7 @@ static void Run( intf_thread_t *p_intf )
...
@@ -288,7 +289,7 @@ static void Run( intf_thread_t *p_intf )
case
VLC_ENOVAR
:
case
VLC_ENOVAR
:
/* username not set */
/* username not set */
intf_UserFatal
(
p_intf
,
false
,
dialog_Fatal
(
p_intf
,
_
(
"Last.fm username not set"
),
_
(
"Last.fm username not set"
),
_
(
"Please set a username or disable the "
_
(
"Please set a username or disable the "
"audioscrobbler plugin, and restart VLC.
\n
"
"audioscrobbler plugin, and restart VLC.
\n
"
...
@@ -807,7 +808,7 @@ static int Handshake( intf_thread_t *p_this )
...
@@ -807,7 +808,7 @@ static int Handshake( intf_thread_t *p_this )
if
(
p_buffer_pos
)
if
(
p_buffer_pos
)
{
{
/* authentication failed, bad username/password combination */
/* authentication failed, bad username/password combination */
intf_UserFatal
(
p_this
,
false
,
dialog_Fatal
(
p_this
,
_
(
"last.fm: Authentication failed"
),
_
(
"last.fm: Authentication failed"
),
_
(
"last.fm username or password is incorrect. "
_
(
"last.fm username or password is incorrect. "
"Please verify your settings and relaunch VLC."
)
);
"Please verify your settings and relaunch VLC."
)
);
...
...
modules/stream_out/es.c
View file @
cf09f019
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
#include <vlc_plugin.h>
#include <vlc_plugin.h>
#include <vlc_input.h>
#include <vlc_input.h>
#include <vlc_sout.h>
#include <vlc_sout.h>
#include <vlc_
interface
.h>
#include <vlc_
dialog
.h>
/*****************************************************************************
/*****************************************************************************
* Module descriptor
* Module descriptor
...
@@ -369,7 +369,7 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
...
@@ -369,7 +369,7 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
{
{
msg_Err
(
p_stream
,
"no suitable sout access module for `%s/%s://%s'"
,
msg_Err
(
p_stream
,
"no suitable sout access module for `%s/%s://%s'"
,
psz_access
,
psz_mux
,
psz_dst
);
psz_access
,
psz_mux
,
psz_dst
);
intf_UserFatal
(
p_stream
,
false
,
dialog_Fatal
(
p_stream
,
_
(
"Streaming / Transcoding failed"
),
_
(
"Streaming / Transcoding failed"
),
_
(
"There is no suitable stream-output access module for
\"
%s/%s://%s
\"
."
),
_
(
"There is no suitable stream-output access module for
\"
%s/%s://%s
\"
."
),
psz_access
,
psz_access
,
...
@@ -384,7 +384,7 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
...
@@ -384,7 +384,7 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
{
{
msg_Err
(
p_stream
,
"no suitable sout mux module for `%s/%s://%s'"
,
msg_Err
(
p_stream
,
"no suitable sout mux module for `%s/%s://%s'"
,
psz_access
,
psz_mux
,
psz_dst
);
psz_access
,
psz_mux
,
psz_dst
);
intf_UserFatal
(
p_stream
,
false
,
dialog_Fatal
(
p_stream
,
_
(
"Streaming / Transcoding failed"
),
_
(
"Streaming / Transcoding failed"
),
_
(
"There is no suitable stream-output access module "
\
_
(
"There is no suitable stream-output access module "
\
"for
\"
%s/%s://%s
\"
."
),
"for
\"
%s/%s://%s
\"
."
),
...
...
modules/video_filter/crop.c
View file @
cf09f019
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
#include <vlc_common.h>
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_plugin.h>
#include <vlc_vout.h>
#include <vlc_vout.h>
#include <vlc_
interface
.h>
#include <vlc_
dialog
.h>
#include "filter_common.h"
#include "filter_common.h"
...
@@ -375,7 +375,7 @@ static int Init( vout_thread_t *p_vout )
...
@@ -375,7 +375,7 @@ static int Init( vout_thread_t *p_vout )
if
(
p_vout
->
p_sys
->
p_vout
==
NULL
)
if
(
p_vout
->
p_sys
->
p_vout
==
NULL
)
{
{
msg_Err
(
p_vout
,
"failed to create vout"
);
msg_Err
(
p_vout
,
"failed to create vout"
);
intf_UserFatal
(
p_vout
,
false
,
_
(
"Cropping failed"
),
dialog_Fatal
(
p_vout
,
_
(
"Cropping failed"
),
_
(
"VLC could not open the video output module."
)
);
_
(
"VLC could not open the video output module."
)
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
@@ -471,7 +471,7 @@ static int Manage( vout_thread_t *p_vout )
...
@@ -471,7 +471,7 @@ static int Manage( vout_thread_t *p_vout )
if
(
p_vout
->
p_sys
->
p_vout
==
NULL
)
if
(
p_vout
->
p_sys
->
p_vout
==
NULL
)
{
{
msg_Err
(
p_vout
,
"failed to create vout"
);
msg_Err
(
p_vout
,
"failed to create vout"
);
intf_UserFatal
(
p_vout
,
false
,
_
(
"Cropping failed"
),
dialog_Fatal
(
p_vout
,
_
(
"Cropping failed"
),
_
(
"VLC could not open the video output module."
)
);
_
(
"VLC could not open the video output module."
)
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
...
src/audio_output/filters.c
View file @
cf09f019
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
#endif
#endif
#include <vlc_common.h>
#include <vlc_common.h>
#include <vlc_
interface
.h>
#include <vlc_
dialog
.h>
#ifdef HAVE_ALLOCA_H
#ifdef HAVE_ALLOCA_H
# include <alloca.h>
# include <alloca.h>
...
@@ -156,7 +156,7 @@ int aout_FiltersCreatePipeline( aout_instance_t * p_aout,
...
@@ -156,7 +156,7 @@ int aout_FiltersCreatePipeline( aout_instance_t * p_aout,
if
(
*
pi_nb_filters
+
1
>
AOUT_MAX_FILTERS
)
if
(
*
pi_nb_filters
+
1
>
AOUT_MAX_FILTERS
)
{
{
msg_Err
(
p_aout
,
"max filter reached (%d)"
,
AOUT_MAX_FILTERS
);
msg_Err
(
p_aout
,
"max filter reached (%d)"
,
AOUT_MAX_FILTERS
);
intf_UserFatal
(
p_aout
,
false
,
_
(
"Audio filtering failed"
),
dialog_Fatal
(
p_aout
,
_
(
"Audio filtering failed"
),
_
(
"The maximum number of filters (%d) was reached."
),
_
(
"The maximum number of filters (%d) was reached."
),
AOUT_MAX_FILTERS
);
AOUT_MAX_FILTERS
);
return
-
1
;
return
-
1
;
...
@@ -203,7 +203,7 @@ int aout_FiltersCreatePipeline( aout_instance_t * p_aout,
...
@@ -203,7 +203,7 @@ int aout_FiltersCreatePipeline( aout_instance_t * p_aout,
{
{
ReleaseFilter
(
pp_filters
[
0
]
);
ReleaseFilter
(
pp_filters
[
0
]
);
msg_Err
(
p_aout
,
"max filter reached (%d)"
,
AOUT_MAX_FILTERS
);
msg_Err
(
p_aout
,
"max filter reached (%d)"
,
AOUT_MAX_FILTERS
);
intf_UserFatal
(
p_aout
,
false
,
_
(
"Audio filtering failed"
),
dialog_Fatal
(
p_aout
,
_
(
"Audio filtering failed"
),
_
(
"The maximum number of filters (%d) was reached."
),
_
(
"The maximum number of filters (%d) was reached."
),
AOUT_MAX_FILTERS
);
AOUT_MAX_FILTERS
);
return
-
1
;
return
-
1
;
...
@@ -226,7 +226,7 @@ int aout_FiltersCreatePipeline( aout_instance_t * p_aout,
...
@@ -226,7 +226,7 @@ int aout_FiltersCreatePipeline( aout_instance_t * p_aout,
{
{
ReleaseFilter
(
pp_filters
[
0
]
);
ReleaseFilter
(
pp_filters
[
0
]
);
msg_Err
(
p_aout
,
"max filter reached (%d)"
,
AOUT_MAX_FILTERS
);
msg_Err
(
p_aout
,
"max filter reached (%d)"
,
AOUT_MAX_FILTERS
);
intf_UserFatal
(
p_aout
,
false
,
_
(
"Audio filtering failed"
),
dialog_Fatal
(
p_aout
,
_
(
"Audio filtering failed"
),
_
(
"The maximum number of filters (%d) was reached."
),
_
(
"The maximum number of filters (%d) was reached."
),
AOUT_MAX_FILTERS
);
AOUT_MAX_FILTERS
);
return
-
1
;
return
-
1
;
...
...
src/input/decoder.c
View file @
cf09f019
...
@@ -40,8 +40,8 @@
...
@@ -40,8 +40,8 @@
#include <vlc_codec.h>
#include <vlc_codec.h>
#include <vlc_osd.h>
#include <vlc_osd.h>
#include <vlc_meta.h>
#include <vlc_meta.h>
#include <vlc_dialog.h>
#include <vlc_interface.h>
#include "audio_output/aout_internal.h"
#include "audio_output/aout_internal.h"
#include "stream_output/stream_output.h"
#include "stream_output/stream_output.h"
#include "input_internal.h"
#include "input_internal.h"
...
@@ -274,7 +274,7 @@ decoder_t *input_DecoderNew( input_thread_t *p_input,
...
@@ -274,7 +274,7 @@ decoder_t *input_DecoderNew( input_thread_t *p_input,
if
(
p_dec
==
NULL
)
if
(
p_dec
==
NULL
)
{
{
msg_Err
(
p_input
,
"could not create packetizer"
);
msg_Err
(
p_input
,
"could not create packetizer"
);
intf_UserFatal
(
p_input
,
false
,
_
(
"Streaming / Transcoding failed"
),
dialog_Fatal
(
p_input
,
_
(
"Streaming / Transcoding failed"
),
_
(
"VLC could not open the packetizer module."
)
);
_
(
"VLC could not open the packetizer module."
)
);
return
NULL
;
return
NULL
;
}
}
...
@@ -287,7 +287,7 @@ decoder_t *input_DecoderNew( input_thread_t *p_input,
...
@@ -287,7 +287,7 @@ decoder_t *input_DecoderNew( input_thread_t *p_input,
if
(
p_dec
==
NULL
)
if
(
p_dec
==
NULL
)
{
{
msg_Err
(
p_input
,
"could not create decoder"
);
msg_Err
(
p_input
,
"could not create decoder"
);
intf_UserFatal
(
p_input
,
false
,
_
(
"Streaming / Transcoding failed"
),
dialog_Fatal
(
p_input
,
_
(
"Streaming / Transcoding failed"
),
_
(
"VLC could not open the decoder module."
)
);
_
(
"VLC could not open the decoder module."
)
);
return
NULL
;
return
NULL
;
}
}
...
@@ -440,7 +440,7 @@ int input_DecoderSetCcState( decoder_t *p_dec, bool b_decode, int i_channel )
...
@@ -440,7 +440,7 @@ int input_DecoderSetCcState( decoder_t *p_dec, bool b_decode, int i_channel )
if
(
!
p_cc
)
if
(
!
p_cc
)
{
{
msg_Err
(
p_dec
,
"could not create decoder"
);
msg_Err
(
p_dec
,
"could not create decoder"
);
intf_UserFatal
(
p_dec
,
false
,
_
(
"Streaming / Transcoding failed"
),
dialog_Fatal
(
p_dec
,
_
(
"Streaming / Transcoding failed"
),
_
(
"VLC could not open the decoder module."
)
);
_
(
"VLC could not open the decoder module."
)
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
@@ -674,9 +674,10 @@ static void DecoderUnsupportedCodec( decoder_t *p_dec, vlc_fourcc_t codec )
...
@@ -674,9 +674,10 @@ static void DecoderUnsupportedCodec( decoder_t *p_dec, vlc_fourcc_t codec )
msg_Err
(
p_dec
,
"no suitable decoder module for fourcc `%4.4s'.
\n
"
msg_Err
(
p_dec
,
"no suitable decoder module for fourcc `%4.4s'.
\n
"
"VLC probably does not support this sound or video format."
,
"VLC probably does not support this sound or video format."
,
(
char
*
)
&
codec
);
(
char
*
)
&
codec
);
intf_UserFatal
(
p_dec
,
false
,
_
(
"No suitable decoder module"
),
dialog_Fatal
(
p_dec
,
_
(
"No suitable decoder module"
),
_
(
"VLC does not support the audio or video format
\"
%4.4s
\"
. "
_
(
"VLC does not support the audio or video format
\"
%4.4s
\"
. "
"Unfortunately there is no way for you to fix this."
),
(
char
*
)
&
codec
);
"Unfortunately there is no way for you to fix this."
),
(
char
*
)
&
codec
);
}
}
...
...
src/input/input.c
View file @
cf09f019
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
#include <vlc_sout.h>
#include <vlc_sout.h>
#include "../stream_output/stream_output.h"
#include "../stream_output/stream_output.h"
#include <vlc_
interface
.h>
#include <vlc_
dialog
.h>
#include <vlc_url.h>
#include <vlc_url.h>
#include <vlc_charset.h>
#include <vlc_charset.h>
#include <vlc_strings.h>
#include <vlc_strings.h>
...
@@ -2389,8 +2389,7 @@ static int InputSourceInit( input_thread_t *p_input,
...
@@ -2389,8 +2389,7 @@ static int InputSourceInit( input_thread_t *p_input,
{
{
msg_Err
(
p_input
,
"open of `%s' failed: %s"
,
psz_mrl
,
msg_Err
(
p_input
,
"open of `%s' failed: %s"
,
psz_mrl
,
msg_StackMsg
()
);
msg_StackMsg
()
);
intf_UserFatal
(
VLC_OBJECT
(
p_input
),
false
,
dialog_Fatal
(
p_input
,
_
(
"Your input can't be opened"
),
_
(
"Your input can't be opened"
),
_
(
"VLC is unable to open the MRL '%s'."
_
(
"VLC is unable to open the MRL '%s'."
" Check the log for details."
),
psz_mrl
);
" Check the log for details."
),
psz_mrl
);
goto
error
;
goto
error
;
...
@@ -2521,7 +2520,7 @@ static int InputSourceInit( input_thread_t *p_input,
...
@@ -2521,7 +2520,7 @@ static int InputSourceInit( input_thread_t *p_input,
{
{
msg_Err
(
p_input
,
"no suitable demux module for `%s/%s://%s'"
,
msg_Err
(
p_input
,
"no suitable demux module for `%s/%s://%s'"
,
psz_access
,
psz_demux
,
psz_path
);
psz_access
,
psz_demux
,
psz_path
);
intf_UserFatal
(
VLC_OBJECT
(
p_input
),
false
,
dialog_Fatal
(
VLC_OBJECT
(
p_input
)
,
_
(
"VLC can't recognize the input's format"
),
_
(
"VLC can't recognize the input's format"
),
_
(
"The format of '%s' cannot be detected. "
_
(
"The format of '%s' cannot be detected. "
"Have a look at the log for details."
),
psz_mrl
);
"Have a look at the log for details."
),
psz_mrl
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment