summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavemds <dave@gurumeditation.it>2013-06-16 10:00:22 +0200
committerdavemds <dave@gurumeditation.it>2013-06-16 10:00:22 +0200
commit0e373496425c01b496aaa8d69f773a2c5ef94657 (patch)
tree1db73cd17729f3308b025d6ff0439bdeefe0b296
parentc76724f5fa359ec1e219885c32ba26d01402128d (diff)
downloademotion_generic_players-0e373496425c01b496aaa8d69f773a2c5ef94657.tar.gz
Emotion VLC: better args to init vlc
This new set of opts disable the display of the title "inside" the video, and disable the automatic search and use of .srt files.
-rw-r--r--src/vlc/emotion_generic_vlc.c25
1 files changed, 8 insertions, 17 deletions
diff --git a/src/vlc/emotion_generic_vlc.c b/src/vlc/emotion_generic_vlc.c
index fb0c900..665f932 100644
--- a/src/vlc/emotion_generic_vlc.c
+++ b/src/vlc/emotion_generic_vlc.c
@@ -666,23 +666,20 @@ main(int argc, const char *argv[])
{
App app;
Ecore_Event_Handler *hld;
- char cwidth[64], cheight[64], cpitch[64], chroma[64];
int vlc_argc;
const char *vlc_argv[] =
{
"--quiet",
- "--vout",
- "vmem",
- "--vmem-width",
- cwidth,
- "--vmem-height",
- cheight,
- "--vmem-pitch",
- cpitch,
- "--vmem-chroma",
- chroma
+ "--intf", "dummy", /* no interface */
+ "--vout", "dummy", /* we don't want video (output) */
+ "--no-video-title-show", /* nor the filename displayed */
+ "--no-sub-autodetect-file", /* we don't want automatic subtitles */
+ "--no-stats", /* no stats */
+ "--no-inhibit", /* we don't want interfaces */
+ "--no-disable-screensaver", /* we don't want interfaces */
};
+ vlc_argc = sizeof(vlc_argv) / sizeof(*vlc_argv);
if (!eina_init())
{
@@ -715,12 +712,6 @@ main(int argc, const char *argv[])
app.fd_write = ecore_pipe_full_add(_dummy, NULL,
-1, atoi(argv[2]), EINA_FALSE, EINA_FALSE);
- vlc_argc = sizeof(vlc_argv) / sizeof(*vlc_argv);
- snprintf(cwidth, sizeof(cwidth), "%d", DEFAULTWIDTH);
- snprintf(cheight, sizeof(cheight), "%d", DEFAULTHEIGHT);
- snprintf(cpitch, sizeof(cpitch), "%d", DEFAULTWIDTH * 4);
- snprintf(chroma, sizeof(chroma), "RV32");
-
hld = ecore_event_handler_add(ECORE_EVENT_SIGNAL_HUP, exit_func, NULL);
app.libvlc = libvlc_new(vlc_argc, vlc_argv);