#include <vlc/aout.h>
#include <vlc/sout.h>
#include <vlc/decoder.h>
+#include <vlc_interaction.h>
/* ffmpeg header */
#define HAVE_MMX 1
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 );
+ intf_UserFatal( p_enc, VLC_FALSE, _("Streaming / Transcoding failed"),
+ _("\"%s\" is no video encoder."), psz_namecodec );
return VLC_EGENERIC;
}
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 );
+ intf_UserFatal( p_enc, VLC_FALSE, _("Streaming / Transcoding failed"),
+ _("\"%s\" is no audio encoder."), psz_namecodec );
return VLC_EGENERIC;
}
if( !p_codec )
{
msg_Err( p_enc, "cannot find encoder %s", psz_namecodec );
+ intf_UserFatal( p_enc, VLC_FALSE, _("Streaming / Transcoding failed"),
+ _("VLC could not find encoder \"%s\"."), psz_namecodec );
return VLC_EGENERIC;
}
{
vlc_mutex_unlock( lockval.p_address );
msg_Err( p_enc, "cannot open encoder" );
+ intf_UserFatal( p_enc, VLC_FALSE, _("Streaming / Transcoding failed"),
+ _("VLC could not open the encoder.") );
free( p_sys );
return VLC_EGENERIC;
}
else
{
msg_Err( p_enc, "cannot open encoder" );
+ intf_UserFatal( p_enc, VLC_FALSE, _("Streaming / Transcoding failed"),
+ _("VLC could not open the encoder.") );
free( p_sys );
return VLC_EGENERIC;
}