davemds pushed a commit to branch master.
commit 0e373496425c01b496aaa8d69f773a2c5ef94657
Author: davemds <[email protected]>
Date: Sun Jun 16 10:00:22 2013 +0200
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.
---
src/vlc/emotion_generic_vlc.c | 25 ++++++++-----------------
1 file 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);
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev