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
04a19873
Commit
04a19873
authored
Aug 09, 2005
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fix object refcount
* Fix some cosmetics
parent
28e2485a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
14 deletions
+22
-14
modules/gui/macosx/bookmarks.m
modules/gui/macosx/bookmarks.m
+22
-14
No files found.
modules/gui/macosx/bookmarks.m
View file @
04a19873
...
...
@@ -121,9 +121,10 @@ static VLCBookmarks *_o_sharedInstance = nil;
{
/* add item to list */
intf_thread_t
*
p_intf
=
VLCIntf
;
input_thread_t
*
p_input
=
(
input_thread_t
*
)
vlc_object_find
(
p_intf
,
\
VLC_OBJECT_INPUT
,
FIND_ANYWHERE
);
if
(
!
p_input
)
return
;
input_thread_t
*
p_input
=
(
input_thread_t
*
)
vlc_object_find
(
p_intf
,
\
VLC_OBJECT_INPUT
,
FIND_ANYWHERE
);
if
(
!
p_input
)
return
;
seekpoint_t
bookmark
;
vlc_value_t
pos
;
...
...
@@ -150,7 +151,8 @@ static VLCBookmarks *_o_sharedInstance = nil;
input_thread_t
*
p_input
=
(
input_thread_t
*
)
vlc_object_find
(
p_intf
,
\
VLC_OBJECT_INPUT
,
FIND_ANYWHERE
);
if
(
!
p_input
)
return
;
if
(
!
p_input
)
return
;
input_Control
(
p_input
,
INPUT_CLEAR_BOOKMARKS
);
...
...
@@ -176,7 +178,7 @@ static VLCBookmarks *_o_sharedInstance = nil;
int
row
;
row
=
[
o_tbl_dataTable
selectedRow
];
if
(
!
p_input
)
if
(
!
p_input
)
{
return
;
}
...
...
@@ -222,7 +224,7 @@ static VLCBookmarks *_o_sharedInstance = nil;
intf_thread_t
*
p_intf
=
VLCIntf
;
seekpoint_t
**
pp_bookmarks
;
int
i_bookmarks
;
int
i_bookmarks
,
i
;
input_thread_t
*
p_input
=
(
input_thread_t
*
)
vlc_object_find
(
p_intf
,
\
VLC_OBJECT_INPUT
,
FIND_ANYWHERE
);
...
...
@@ -250,8 +252,7 @@ static VLCBookmarks *_o_sharedInstance = nil;
vlc_object_release
(
p_input
);
return
;
}
int
i
;
i
=
[
o_tbl_dataTable
selectedRow
];
if
(
pp_bookmarks
[
i
]
->
psz_name
)
...
...
@@ -408,15 +409,18 @@ static VLCBookmarks *_o_sharedInstance = nil;
seekpoint_t
**
pp_bookmarks
;
int
i_bookmarks
;
if
(
!
p_input
)
if
(
!
p_input
)
{
return
0
;
}
else
if
(
input_Control
(
p_input
,
INPUT_GET_BOOKMARKS
,
&
pp_bookmarks
,
\
}
else
if
(
input_Control
(
p_input
,
INPUT_GET_BOOKMARKS
,
&
pp_bookmarks
,
\
&
i_bookmarks
)
!=
VLC_SUCCESS
)
{
vlc_object_release
(
p_input
);
return
0
;
}
else
{
}
else
{
vlc_object_release
(
p_input
);
return
i_bookmarks
;
}
}
...
...
@@ -435,7 +439,7 @@ static VLCBookmarks *_o_sharedInstance = nil;
int
i_toBeReturned
;
i_toBeReturned
=
0
;
if
(
!
p_input
)
if
(
!
p_input
)
{
return
@""
;
}
...
...
@@ -444,7 +448,9 @@ static VLCBookmarks *_o_sharedInstance = nil;
{
vlc_object_release
(
p_input
);
return
@""
;
}
else
{
}
else
{
if
([[
theTableColumn
identifier
]
isEqualToString
:
@"description"
])
{
toBeReturned
=
pp_bookmarks
[
row
]
->
psz_name
;
...
...
@@ -490,7 +496,9 @@ static VLCBookmarks *_o_sharedInstance = nil;
[
o_btn_edit
setEnabled
:
NO
];
[
o_btn_rm
setEnabled
:
NO
];
[
o_btn_extract
setEnabled
:
NO
];
}
else
{
}
else
{
/* a row is selected */
[
o_btn_edit
setEnabled
:
YES
];
[
o_btn_rm
setEnabled
:
YES
];
...
...
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