Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
23cdeacf
Commit
23cdeacf
authored
Jan 18, 2003
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Including font-eutopiabold36.rle for DivX and ogg subtitles.
parent
b3016a96
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
5 deletions
+22
-5
Makefile.am
Makefile.am
+1
-1
include/darwin_specific.h
include/darwin_specific.h
+2
-2
modules/codec/spudec/spudec.c
modules/codec/spudec/spudec.c
+19
-2
No files found.
Makefile.am
View file @
23cdeacf
...
@@ -471,7 +471,7 @@ vlc.app: vlc $(PLUGIN_FILES)
...
@@ -471,7 +471,7 @@ vlc.app: vlc $(PLUGIN_FILES)
$(INSTALL)
$$
i vlc.app/Contents/MacOS/modules/
;
\
$(INSTALL)
$$
i vlc.app/Contents/MacOS/modules/
;
\
fi
;
done
fi
;
done
$(INSTALL)
-d
vlc.app/Contents/MacOS/share
$(INSTALL)
-d
vlc.app/Contents/MacOS/share
$(INSTALL)
-m
644 share/
*
.psf vlc.app/Contents/MacOS/share
$(INSTALL)
-m
644 share/
*
.psf
share/
*
.rle
vlc.app/Contents/MacOS/share
$(INSTALL)
-d
vlc.app/Contents/MacOS/locale
$(INSTALL)
-d
vlc.app/Contents/MacOS/locale
for
i
in
$(CATALOGS)
;
do
\
for
i
in
$(CATALOGS)
;
do
\
mkdir
-p
vlc.app/Contents/MacOS/locale/
$
${i%.gmo}
/LC_MESSAGES
;
\
mkdir
-p
vlc.app/Contents/MacOS/locale/
$
${i%.gmo}
/LC_MESSAGES
;
\
...
...
include/darwin_specific.h
View file @
23cdeacf
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* darwin_specific.h: Darwin specific features
* darwin_specific.h: Darwin specific features
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: darwin_specific.h,v 1.
5 2002/07/05 11:18:56 sam
Exp $
* $Id: darwin_specific.h,v 1.
6 2003/01/18 13:24:44 massiot
Exp $
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
*
*
...
@@ -24,4 +24,4 @@
...
@@ -24,4 +24,4 @@
/*****************************************************************************
/*****************************************************************************
* Prototypes
* Prototypes
*****************************************************************************/
*****************************************************************************/
char
*
system_GetProgramPath
(
void
);
VLC_EXPORT
(
char
*
,
system_GetProgramPath
,
(
void
)
);
modules/codec/spudec/spudec.c
View file @
23cdeacf
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* spudec.c : SPU decoder thread
* spudec.c : SPU decoder thread
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* Copyright (C) 2000-2001 VideoLAN
* $Id: spudec.c,v 1.
9 2002/12/02 21:13:25 jlj
Exp $
* $Id: spudec.c,v 1.
10 2003/01/18 13:24:44 massiot
Exp $
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
*
*
...
@@ -49,10 +49,17 @@ static void EndThread ( spudec_thread_t * );
...
@@ -49,10 +49,17 @@ static void EndThread ( spudec_thread_t * );
"When the subtitles are coded in text form then, you can choose " \
"When the subtitles are coded in text form then, you can choose " \
"which font will be used to display them.")
"which font will be used to display them.")
#define DEFAULT_FONT "font-eutopiabold36.rle"
vlc_module_begin
();
vlc_module_begin
();
add_category_hint
(
N_
(
"subtitles"
),
NULL
);
add_category_hint
(
N_
(
"subtitles"
),
NULL
);
add_file
(
"spudec-font"
,
"./share/font-eutopiabold36.rle"
,
NULL
,
#ifndef SYS_DARWIN
add_file
(
"spudec-font"
,
"./share/"
DEFAULT_FONT
,
NULL
,
FONT_TEXT
,
FONT_LONGTEXT
);
#else
add_file
(
"spudec-font"
,
NULL
,
NULL
,
FONT_TEXT
,
FONT_LONGTEXT
);
FONT_TEXT
,
FONT_LONGTEXT
);
#endif
set_description
(
_
(
"subtitles decoder module"
)
);
set_description
(
_
(
"subtitles decoder module"
)
);
set_capability
(
"decoder"
,
50
);
set_capability
(
"decoder"
,
50
);
set_callbacks
(
OpenDecoder
,
NULL
);
set_callbacks
(
OpenDecoder
,
NULL
);
...
@@ -118,6 +125,15 @@ static int RunDecoder( decoder_fifo_t * p_fifo )
...
@@ -118,6 +125,15 @@ static int RunDecoder( decoder_fifo_t * p_fifo )
{
{
/* Here we are dealing with text subtitles */
/* Here we are dealing with text subtitles */
#ifdef SYS_DARWIN
if
(
(
psz_font
=
config_GetPsz
(
p_fifo
,
"spudec-font"
))
==
NULL
)
{
char
*
psz_vlcpath
=
system_GetProgramPath
();
psz_font
=
malloc
(
strlen
(
psz_vlcpath
)
+
strlen
(
"/share/"
)
+
strlen
(
DEFAULT_FONT
)
+
1
);
sprintf
(
psz_font
,
"%s/share/"
DEFAULT_FONT
,
psz_vlcpath
);
}
#else
if
(
(
psz_font
=
config_GetPsz
(
p_fifo
,
"spudec-font"
))
==
NULL
)
if
(
(
psz_font
=
config_GetPsz
(
p_fifo
,
"spudec-font"
))
==
NULL
)
{
{
msg_Err
(
p_fifo
,
"no default font selected"
);
msg_Err
(
p_fifo
,
"no default font selected"
);
...
@@ -125,6 +141,7 @@ static int RunDecoder( decoder_fifo_t * p_fifo )
...
@@ -125,6 +141,7 @@ static int RunDecoder( decoder_fifo_t * p_fifo )
p_spudec
->
p_fifo
->
b_error
;
p_spudec
->
p_fifo
->
b_error
;
}
}
else
else
#endif
{
{
p_font
=
E_
(
subtitler_LoadFont
)(
p_spudec
->
p_vout
,
psz_font
);
p_font
=
E_
(
subtitler_LoadFont
)(
p_spudec
->
p_vout
,
psz_font
);
if
(
p_font
==
NULL
)
if
(
p_font
==
NULL
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment