summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--po/POTFILES.in1
-rw-r--r--src/video_out/video_out_xcbxv.c6
-rw-r--r--src/video_out/video_out_xv.c6
-rw-r--r--src/video_out/video_out_xxmc.c6
-rw-r--r--src/video_out/xv_common.h8
5 files changed, 15 insertions, 12 deletions
diff --git a/po/POTFILES.in b/po/POTFILES.in
index b067431df..c328946c9 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -118,6 +118,7 @@ src/video_out/video_out_xvmc.c
src/video_out/video_out_xxmc.c
src/video_out/x11osd.c
src/video_out/xcbosd.c
+src/video_out/xv_common.h
src/xine-engine/alphablend.c
src/xine-engine/audio_decoder.c
src/xine-engine/audio_out.c
diff --git a/src/video_out/video_out_xcbxv.c b/src/video_out/video_out_xcbxv.c
index 5064e89ad..f61ae6a9c 100644
--- a/src/video_out/video_out_xcbxv.c
+++ b/src/video_out/video_out_xcbxv.c
@@ -1197,8 +1197,7 @@ static vo_driver_t *open_plugin(video_driver_class_t *class_gen, const void *vis
adaptor_it = xcb_xv_query_adaptors_info_iterator(query_adaptors_reply);
xv_port = config->register_num (config, "video.device.xv_port", 0,
- _("Xv port number"),
- _("Selects the Xv port number to use (0 to autodetect)."),
+ VIDEO_DEVICE_XV_PORT_HELP,
10, NULL, NULL);
if (xv_port != 0) {
@@ -1380,8 +1379,7 @@ static vo_driver_t *open_plugin(video_driver_class_t *class_gen, const void *vis
this->use_pitch_alignment =
config->register_bool (config, "video.device.xv_pitch_alignment", 0,
- _("pitch alignment workaround"),
- _("Some buggy video drivers need a workaround to function properly."),
+ VIDEO_DEVICE_XV_PITCH_ALIGNMENT_HELP,
10, xv_update_xv_pitch_alignment, this);
if(this->use_colorkey==1) {
diff --git a/src/video_out/video_out_xv.c b/src/video_out/video_out_xv.c
index a92f6dbe8..6cdbc6b64 100644
--- a/src/video_out/video_out_xv.c
+++ b/src/video_out/video_out_xv.c
@@ -1233,8 +1233,7 @@ static vo_driver_t *open_plugin_2 (video_driver_class_t *class_gen, const void *
}
xv_port = config->register_num (config, "video.device.xv_port", 0,
- _("Xv port number"),
- _("Selects the Xv port number to use (0 to autodetect)."),
+ VIDEO_DEVICE_XV_PORT_HELP,
10, NULL, NULL);
if (xv_port != 0) {
@@ -1438,8 +1437,7 @@ static vo_driver_t *open_plugin_2 (video_driver_class_t *class_gen, const void *
this->use_pitch_alignment =
config->register_bool (config, "video.device.xv_pitch_alignment", 0,
- _("pitch alignment workaround"),
- _("Some buggy video drivers need a workaround to function properly."),
+ VIDEO_DEVICE_XV_PITCH_ALIGNMENT_HELP,
10, xv_update_xv_pitch_alignment, this);
LOCK_DISPLAY(this);
diff --git a/src/video_out/video_out_xxmc.c b/src/video_out/video_out_xxmc.c
index af7f52f54..107ed9c7b 100644
--- a/src/video_out/video_out_xxmc.c
+++ b/src/video_out/video_out_xxmc.c
@@ -2478,8 +2478,7 @@ static vo_driver_t *open_plugin (video_driver_class_t *class_gen, const void *vi
}
xv_port = config->register_num (config, "video.device.xv_port", 0,
- _("Xv port number"),
- _("Selects the Xv port number to use (0 to autodetect)."),
+ VIDEO_DEVICE_XV_PORT_HELP,
10, NULL, NULL);
if (xv_port != 0) {
@@ -2688,8 +2687,7 @@ static vo_driver_t *open_plugin (video_driver_class_t *class_gen, const void *vi
this->use_pitch_alignment =
config->register_bool (config, "video.device.xv_pitch_alignment", 0,
- _("pitch alignment workaround"),
- _("Some buggy video drivers need a workaround to function properly."),
+ VIDEO_DEVICE_XV_PITCH_ALIGNMENT_HELP,
10, xxmc_update_xv_pitch_alignment, this);
use_more_frames=
diff --git a/src/video_out/xv_common.h b/src/video_out/xv_common.h
index 71eecddad..ee2ab9a10 100644
--- a/src/video_out/xv_common.h
+++ b/src/video_out/xv_common.h
@@ -48,3 +48,11 @@
"image to the repainting of the entire screen (\"vertical " \
"retrace\"). This eliminates flickering and tearing artifacts, " \
"but will use more graphics memory.")
+
+#define VIDEO_DEVICE_XV_PORT_HELP \
+ _("Xv port number"), \
+ _("Selects the Xv port number to use (0 to autodetect).")
+
+#define VIDEO_DEVICE_XV_PITCH_ALIGNMENT_HELP \
+ _("pitch alignment workaround"), \
+ _("Some buggy video drivers need a workaround to function properly.")