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
aa41414d
Commit
aa41414d
authored
Mar 26, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/input/control.c: fixed INPUT_DEL_BOOKMARK.
parent
0880ea2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
33 deletions
+16
-33
src/input/control.c
src/input/control.c
+16
-33
No files found.
src/input/control.c
View file @
aa41414d
...
...
@@ -85,45 +85,27 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args )
break
;
case
INPUT_DEL_BOOKMARK
:
p_bkmk
=
(
seekpoint_t
*
)
va_arg
(
args
,
seekpoint_t
*
);
if
(
p_input
->
i_bookmarks
)
i_bkmk
=
(
int
)
va_arg
(
args
,
int
);
if
(
i_bkmk
<
p_input
->
i_bookmarks
)
{
int
i
;
p_bkmk
=
p_input
->
pp_bookmarks
[
i_bkmk
];
TAB_REMOVE
(
p_input
->
i_bookmarks
,
p_input
->
pp_bookmarks
,
p_bkmk
);
vlc_seekpoint_Delete
(
p_bkmk
);
/* Reflect the changes on the object var */
var_Change
(
p_input
,
"bookmark"
,
VLC_VAR_CLEARCHOICES
,
0
,
0
);
for
(
i
=
0
;
i
<
p_input
->
i_bookmarks
;
i
++
)
{
if
(
(
p_bkmk
->
i_byte_offset
&&
p_input
->
pp_bookmarks
[
i
]
->
i_byte_offset
==
p_bkmk
->
i_byte_offset
)
||
(
p_bkmk
->
i_time_offset
&&
p_input
->
pp_bookmarks
[
i
]
->
i_time_offset
==
p_bkmk
->
i_time_offset
)
||
(
!
p_bkmk
->
i_byte_offset
&&
!
p_bkmk
->
i_time_offset
&&
p_input
->
pp_bookmarks
[
i
]
->
i_byte_offset
==
p_bkmk
->
i_byte_offset
)
)
{
p_bkmk
=
p_input
->
pp_bookmarks
[
i
];
break
;
}
}
if
(
i
<
p_input
->
i_bookmarks
)
{
TAB_REMOVE
(
p_input
->
i_bookmarks
,
p_input
->
pp_bookmarks
,
p_bkmk
);
vlc_seekpoint_Delete
(
p_bkmk
);
/* Reflect the changes on the object var */
var_Change
(
p_input
,
"bookmark"
,
VLC_VAR_CLEARCHOICES
,
0
,
0
);
for
(
i
=
0
;
i
<
p_input
->
i_bookmarks
;
i
++
)
{
val
.
i_int
=
i
;
text
.
psz_string
=
p_input
->
pp_bookmarks
[
i
]
->
psz_name
;
var_Change
(
p_input
,
"bookmark"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
}
val
.
i_int
=
i
;
text
.
psz_string
=
p_input
->
pp_bookmarks
[
i
]
->
psz_name
;
var_Change
(
p_input
,
"bookmark"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
}
i_ret
=
VLC_SUCCESS
;
}
i_ret
=
VLC_SUCCESS
;
else
i_ret
=
VLC_EGENERIC
;
break
;
case
INPUT_GET_BOOKMARKS
:
...
...
@@ -163,6 +145,7 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args )
p_bkmk
);
vlc_seekpoint_Delete
(
p_bkmk
);
}
var_Change
(
p_input
,
"bookmark"
,
VLC_VAR_CLEARCHOICES
,
0
,
0
);
}
i_ret
=
VLC_SUCCESS
;
break
;
...
...
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