Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
52c18c4d
Commit
52c18c4d
authored
May 23, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 1.0-bugfix
parents
49d534e0
deb3a851
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
5 deletions
+38
-5
modules/LIST
modules/LIST
+1
-0
modules/gui/macosx/controls.h
modules/gui/macosx/controls.h
+3
-0
modules/gui/macosx/controls.m
modules/gui/macosx/controls.m
+28
-1
modules/video_filter/alphamask.c
modules/video_filter/alphamask.c
+4
-3
src/control/media_player.c
src/control/media_player.c
+1
-0
src/input/demux.c
src/input/demux.c
+1
-1
No files found.
modules/LIST
View file @
52c18c4d
...
...
@@ -230,6 +230,7 @@ $Id$
* osdmenu: video_filter for displaying and streaming a On Screen Display menu
* oss: audio output module using the OSS /dev/dsp interface
* packetizer_copy: Simple copy packetizer
* packetizer_dirac: Dirac video packetizer
* packetizer_h264: H264 video packetizer
* packetizer_mlp: MLP/TrueHD audio packetizer
* packetizer_mpeg4audio: MPEG4 audio packetizer
...
...
modules/gui/macosx/controls.h
View file @
52c18c4d
...
...
@@ -55,10 +55,12 @@
IBOutlet
id
o_specificTime_mi
;
VLCFSPanel
*
o_fs_panel
;
BOOL
b_lockAspectRatio
;
}
-
(
void
)
controlTintChanged
;
-
(
id
)
voutView
;
-
(
BOOL
)
aspectRatioIsLocked
;
-
(
IBAction
)
play
:(
id
)
sender
;
-
(
IBAction
)
stop
:(
id
)
sender
;
...
...
@@ -93,6 +95,7 @@
-
(
IBAction
)
telxTransparent
:(
id
)
sender
;
-
(
IBAction
)
telxNavLink
:(
id
)
sender
;
-
(
IBAction
)
lockVideosAspectRatio
:(
id
)
sender
;
-
(
IBAction
)
addSubtitleFile
:(
id
)
sender
;
-
(
BOOL
)
keyEvent
:(
NSEvent
*
)
o_event
;
...
...
modules/gui/macosx/controls.m
View file @
52c18c4d
...
...
@@ -50,6 +50,7 @@
{
[
super
init
];
o_fs_panel
=
[[
VLCFSPanel
alloc
]
init
];
b_lockAspectRatio
=
YES
;
return
self
;
}
...
...
@@ -156,6 +157,11 @@
return
[[
o_voutView
retain
]
autorelease
];
}
-
(
BOOL
)
aspectRatioIsLocked
{
return
b_lockAspectRatio
;
}
-
(
IBAction
)
stop
:(
id
)
sender
{
intf_thread_t
*
p_intf
=
VLCIntf
;
...
...
@@ -548,6 +554,16 @@
}
}
-
(
IBAction
)
lockVideosAspectRatio
:(
id
)
sender
{
if
(
[
sender
state
]
==
NSOffState
)
[
sender
setState
:
NSOnState
];
else
[
sender
setState
:
NSOffState
];
b_lockAspectRatio
=
!
b_lockAspectRatio
;
}
-
(
IBAction
)
addSubtitleFile
:(
id
)
sender
{
NSInteger
i_returnValue
=
0
;
...
...
@@ -580,7 +596,6 @@
if
(
input_AddSubtitle
(
p_input
,
[[[
openPanel
filenames
]
objectAtIndex
:
i
]
UTF8String
],
TRUE
)
)
msg_Warn
(
VLCIntf
,
"unable to load subtitles from '%s'"
,
[[[
openPanel
filenames
]
objectAtIndex
:
i
]
UTF8String
]
);
i
++
;
}
}
}
...
...
@@ -785,6 +800,18 @@
/* make (un)sensitive */
[
o_parent
setEnabled
:
(
val_list
.
p_list
->
i_count
>
1
)];
/* Aspect Ratio */
if
(
[[
o_parent
title
]
isEqualToString
:
_NS
(
"Aspect-ratio"
)]
==
YES
)
{
NSMenuItem
*
o_lmi_tmp2
;
o_lmi_tmp2
=
[
o_menu
addItemWithTitle
:
_NS
(
"Lock Aspect Ratio"
)
action
:
@selector
(
lockVideosAspectRatio
:
)
keyEquivalent
:
@""
];
[
o_lmi_tmp2
setTarget
:
self
];
[
o_lmi_tmp2
setEnabled
:
YES
];
[
o_lmi_tmp2
setState
:
b_lockAspectRatio
];
[
o_parent
setEnabled
:
YES
];
[
o_menu
addItem
:
[
NSMenuItem
separatorItem
]];
}
/* special case for the subtitles items */
if
(
[[
o_parent
title
]
isEqualToString
:
_NS
(
"Subtitles Track"
)]
==
YES
)
{
...
...
modules/video_filter/alphamask.c
View file @
52c18c4d
...
...
@@ -107,7 +107,8 @@ static int Create( vlc_object_t *p_this )
config_ChainParse
(
p_filter
,
CFG_PREFIX
,
ppsz_filter_options
,
p_filter
->
p_cfg
);
p_sys
->
p_mask
=
NULL
;
psz_string
=
var_CreateGetStringCommand
(
p_filter
,
CFG_PREFIX
"mask"
);
if
(
psz_string
&&
*
psz_string
)
{
LoadMask
(
p_filter
,
psz_string
);
...
...
@@ -115,11 +116,11 @@ static int Create( vlc_object_t *p_this )
msg_Err
(
p_filter
,
"Error while loading mask (%s)."
,
psz_string
);
}
else
p_sys
->
p_mask
=
NULL
;
free
(
psz_string
);
vlc_mutex_init
(
&
p_sys
->
mask_lock
);
psz_string
=
var_CreateGetStringCommand
(
p_filter
,
CFG_PREFIX
"mask"
);
var_AddCallback
(
p_filter
,
CFG_PREFIX
"mask"
,
MaskCallback
,
p_filter
);
p_filter
->
pf_video_filter
=
Filter
;
...
...
src/control/media_player.c
View file @
52c18c4d
...
...
@@ -282,6 +282,7 @@ libvlc_media_player_new( libvlc_instance_t * p_libvlc_instance,
p_mi
->
drawable
.
agl
=
0
;
p_mi
->
drawable
.
xid
=
0
;
p_mi
->
drawable
.
hwnd
=
NULL
;
p_mi
->
drawable
.
nsobject
=
NULL
;
p_mi
->
p_libvlc_instance
=
p_libvlc_instance
;
p_mi
->
p_input_thread
=
NULL
;
p_mi
->
i_refcount
=
1
;
...
...
src/input/demux.c
View file @
52c18c4d
...
...
@@ -234,7 +234,7 @@ int demux_vaControlHelper( stream_t *s,
case
DEMUX_GET_TIME
:
pi64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
if
(
i_bitrate
>
0
&&
i_
end
>
i_start
)
if
(
i_bitrate
>
0
&&
i_
tell
>=
i_start
)
{
*
pi64
=
INT64_C
(
8000000
)
*
(
i_tell
-
i_start
)
/
i_bitrate
;
return
VLC_SUCCESS
;
...
...
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