Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
15206e75
Commit
15206e75
authored
Apr 01, 2004
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fix p_item etc breakages. Question.. is the seperate fileinfo dialog still useful?
parent
e2bbf5ca
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
22 deletions
+19
-22
modules/gui/macosx/info.h
modules/gui/macosx/info.h
+1
-1
modules/gui/macosx/info.m
modules/gui/macosx/info.m
+16
-19
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+1
-1
modules/gui/macosx/playlist.m
modules/gui/macosx/playlist.m
+1
-1
No files found.
modules/gui/macosx/info.h
View file @
15206e75
...
...
@@ -36,6 +36,6 @@
-
(
void
)
updateInfo
;
-
(
IBAction
)
toggleInfoPanel
:(
id
)
sender
;
-
(
IBAction
)
showCategory
:(
id
)
sender
;
-
(
void
)
createInfoView
:(
in
put_in
fo_category_t
*
)
p_category
;
-
(
void
)
createInfoView
:(
info_category_t
*
)
p_category
;
@end
modules/gui/macosx/info.m
View file @
15206e75
...
...
@@ -75,6 +75,7 @@
-
(
void
)
updateInfo
{
NSString
*
o_selectedPane
;
int
i
,
i_select
;
if
(
!
[
o_window
isVisible
]
)
{
...
...
@@ -95,19 +96,16 @@
[
o_strings
removeAllObjects
];
[
o_selector
removeAllItems
];
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
input_info_category_t
*
p_category
=
p_input
->
stream
.
p_info
;
while
(
p_category
)
vlc_mutex_lock
(
&
p_input
->
p_item
->
lock
);
for
(
i
=
0
;
i
<
p_input
->
p_item
->
i_categories
;
i
++
)
{
[
self
createInfoView
:
p_category
];
p_category
=
p_category
->
p_next
;
}
info_category_t
*
p_cat
=
p_input
->
p_item
->
pp_categories
[
i
];
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
if
(
p_input
)
vlc_object_release
(
p_input
);
[
self
createInfoView
:
p_cat
];
}
vlc_mutex_unlock
(
&
p_input
->
p_item
->
lock
);
i
nt
i
_select
=
[
o_selector
indexOfItemWithTitle
:
o_selectedPane
];
i_select
=
[
o_selector
indexOfItemWithTitle
:
o_selectedPane
];
if
(
i_select
<
0
)
{
i_select
=
0
;
...
...
@@ -116,27 +114,26 @@
[
self
showCategory
:
o_selector
];
}
-
(
void
)
createInfoView
:(
in
put_info_category_t
*
)
p_category
-
(
void
)
createInfoView
:(
in
fo_category_t
*
)
p_cat
{
NSString
*
o_title
;
NSMutableString
*
o_content
;
input_info_t
*
p_info
;
info_t
*
p_info
;
int
i
;
/* Add a category */
o_title
=
[
NSString
stringWithUTF8String
:
p_cat
egory
->
psz_name
];
o_title
=
[
NSString
stringWithUTF8String
:
p_cat
->
psz_name
];
[
o_selector
addItemWithTitle
:
o_title
];
/* Create empty content string */
o_content
=
[
NSMutableString
string
];
/* Add the fields */
p_info
=
p_category
->
p_info
;
while
(
p_info
)
for
(
i
=
0
;
i
<
p_cat
->
i_infos
;
i
++
)
{
p_info
=
p_cat
->
pp_infos
[
i
];
[
o_content
appendFormat
:
@"%@: %@
\n\n
"
,
[
NSApp
localizedString
:
p_info
->
psz_name
],
[
NSApp
localizedString
:
p_info
->
psz_value
]];
p_info
=
p_info
->
p_next
;
}
[
o_strings
setObject
:
o_content
forKey
:
o_title
];
...
...
modules/gui/macosx/intf.m
View file @
15206e75
...
...
@@ -739,7 +739,7 @@ unsigned int VLCModifiersToCocoa( unsigned int i_key )
vlc_mutex_lock
(
&
p_playlist
->
object_lock
);
[
o_scrollfield
setStringValue
:
[
NSString
stringWithUTF8String
:
p_playlist
->
pp_items
[
p_playlist
->
i_index
]
->
psz_name
]];
p_playlist
->
pp_items
[
p_playlist
->
i_index
]
->
input
.
psz_name
]];
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
if
(
p_vout
!=
NULL
)
...
...
modules/gui/macosx/playlist.m
View file @
15206e75
...
...
@@ -684,7 +684,7 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
else
if
(
[[
o_tc
identifier
]
isEqualToString
:
@"3"
]
)
{
char
psz_duration
[
MSTRTIME_MAX_SIZE
];
mtime_t
dur
=
p_playlist
->
pp_items
[
i_row
]
->
i_duration
;
mtime_t
dur
=
p_playlist
->
pp_items
[
i_row
]
->
i
nput
.
i
_duration
;
if
(
dur
!=
-
1
)
{
secstotimestr
(
psz_duration
,
dur
/
1000000
);
...
...
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