summaryrefslogtreecommitdiffstats
path: root/vobsub.c
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-06-28 08:26:14 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-02 04:11:43 +0200
commita1b8092c872977e3289e6cf5232d5b534fbd90b8 (patch)
tree2ee9b6b07f8e25f29fd8a06505c582e13403c171 /vobsub.c
parent055f411ce338343cf996d256b262b9423ee68a20 (diff)
downloadmpv-a1b8092c872977e3289e6cf5232d5b534fbd90b8.tar.bz2
mpv-a1b8092c872977e3289e6cf5232d5b534fbd90b8.tar.xz
Factorize MPlayer/MEncoder version string handling.
The string now resides in a central object file instead of being duplicated in every file that requires a version string. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31577 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'vobsub.c')
-rw-r--r--vobsub.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/vobsub.c b/vobsub.c
index f14e72f7d3..f208b7d8de 100644
--- a/vobsub.c
+++ b/vobsub.c
@@ -32,8 +32,7 @@
#include <sys/types.h>
#include "config.h"
-#include "version.h"
-
+#include "mpcommon.h"
#include "vobsub.h"
#include "spudec.h"
#include "mp_msg.h"
@@ -1254,12 +1253,12 @@ static void create_idx(vobsub_out_t *me, const unsigned int *palette,
fprintf(me->fidx,
"# VobSub index file, v7 (do not modify this line!)\n"
"#\n"
- "# Generated by MPlayer " VERSION "\n"
+ "# Generated by %s\n"
"# See <URL:http://www.mplayerhq.hu/> for more information about MPlayer\n"
"# See <URL:http://wiki.multimedia.cx/index.php?title=VOBsub> for more information about Vobsub\n"
"#\n"
"size: %ux%u\n",
- orig_width, orig_height);
+ mplayer_version, orig_width, orig_height);
if (palette) {
fputs("palette:", me->fidx);
for (i = 0; i < 16; ++i) {