Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
98c46028
Commit
98c46028
authored
Jul 31, 2009
by
Andy Chenee
Committed by
Rémi Denis-Courmont
Aug 04, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RC: add frame-by-frame function
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
cd5c7ace
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
modules/control/rc.c
modules/control/rc.c
+11
-1
No files found.
modules/control/rc.c
View file @
98c46028
...
@@ -412,6 +412,7 @@ static void RegisterCallbacks( intf_thread_t *p_intf )
...
@@ -412,6 +412,7 @@ static void RegisterCallbacks( intf_thread_t *p_intf )
ADD
(
"faster"
,
VOID
,
Input
)
ADD
(
"faster"
,
VOID
,
Input
)
ADD
(
"slower"
,
VOID
,
Input
)
ADD
(
"slower"
,
VOID
,
Input
)
ADD
(
"normal"
,
VOID
,
Input
)
ADD
(
"normal"
,
VOID
,
Input
)
ADD
(
"frame"
,
VOID
,
Input
)
ADD
(
"atrack"
,
STRING
,
Input
)
ADD
(
"atrack"
,
STRING
,
Input
)
ADD
(
"vtrack"
,
STRING
,
Input
)
ADD
(
"vtrack"
,
STRING
,
Input
)
...
@@ -514,6 +515,7 @@ static void Run( intf_thread_t *p_intf )
...
@@ -514,6 +515,7 @@ static void Run( intf_thread_t *p_intf )
var_AddCallback
(
p_input
,
"rate"
,
RateChanged
,
p_intf
);
var_AddCallback
(
p_input
,
"rate"
,
RateChanged
,
p_intf
);
var_AddCallback
(
p_input
,
"time-offset"
,
TimeOffsetChanged
,
var_AddCallback
(
p_input
,
"time-offset"
,
TimeOffsetChanged
,
p_intf
);
p_intf
);
var_AddCallback
(
p_input
,
"frame-next"
,
RateChanged
,
p_intf
);
}
}
}
}
else
if
(
p_input
->
b_dead
)
else
if
(
p_input
->
b_dead
)
...
@@ -524,6 +526,7 @@ static void Run( intf_thread_t *p_intf )
...
@@ -524,6 +526,7 @@ static void Run( intf_thread_t *p_intf )
var_DelCallback
(
p_input
,
"rate"
,
RateChanged
,
p_intf
);
var_DelCallback
(
p_input
,
"rate"
,
RateChanged
,
p_intf
);
var_DelCallback
(
p_input
,
"time-offset"
,
TimeOffsetChanged
,
var_DelCallback
(
p_input
,
"time-offset"
,
TimeOffsetChanged
,
p_intf
);
p_intf
);
var_DelCallback
(
p_input
,
"frame-next"
,
RateChanged
,
p_intf
);
vlc_object_release
(
p_input
);
vlc_object_release
(
p_input
);
p_input
=
NULL
;
p_input
=
NULL
;
...
@@ -818,6 +821,7 @@ static void Run( intf_thread_t *p_intf )
...
@@ -818,6 +821,7 @@ static void Run( intf_thread_t *p_intf )
var_DelCallback
(
p_input
,
"rate-slower"
,
RateChanged
,
p_intf
);
var_DelCallback
(
p_input
,
"rate-slower"
,
RateChanged
,
p_intf
);
var_DelCallback
(
p_input
,
"rate"
,
RateChanged
,
p_intf
);
var_DelCallback
(
p_input
,
"rate"
,
RateChanged
,
p_intf
);
var_DelCallback
(
p_input
,
"time-offset"
,
TimeOffsetChanged
,
p_intf
);
var_DelCallback
(
p_input
,
"time-offset"
,
TimeOffsetChanged
,
p_intf
);
var_DelCallback
(
p_input
,
"frame-next"
,
RateChanged
,
p_intf
);
vlc_object_release
(
p_input
);
vlc_object_release
(
p_input
);
}
}
...
@@ -858,6 +862,7 @@ static void Help( intf_thread_t *p_intf, bool b_longhelp)
...
@@ -858,6 +862,7 @@ static void Help( intf_thread_t *p_intf, bool b_longhelp)
msg_rc
(
"%s"
,
_
(
"| faster . . . . . . . . . . faster playing of stream"
));
msg_rc
(
"%s"
,
_
(
"| faster . . . . . . . . . . faster playing of stream"
));
msg_rc
(
"%s"
,
_
(
"| slower . . . . . . . . . . slower playing of stream"
));
msg_rc
(
"%s"
,
_
(
"| slower . . . . . . . . . . slower playing of stream"
));
msg_rc
(
"%s"
,
_
(
"| normal . . . . . . . . . . normal playing of stream"
));
msg_rc
(
"%s"
,
_
(
"| normal . . . . . . . . . . normal playing of stream"
));
msg_rc
(
"%s"
,
_
(
"| frame. . . . . . . . . . play frame by frame"
));
msg_rc
(
"%s"
,
_
(
"| f [on|off] . . . . . . . . . . . . toggle fullscreen"
));
msg_rc
(
"%s"
,
_
(
"| f [on|off] . . . . . . . . . . . . toggle fullscreen"
));
msg_rc
(
"%s"
,
_
(
"| info . . . . . information about the current stream"
));
msg_rc
(
"%s"
,
_
(
"| info . . . . . information about the current stream"
));
msg_rc
(
"%s"
,
_
(
"| stats . . . . . . . . show statistical information"
));
msg_rc
(
"%s"
,
_
(
"| stats . . . . . . . . show statistical information"
));
...
@@ -1030,7 +1035,7 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -1030,7 +1035,7 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
int
state
=
var_GetInteger
(
p_input
,
"state"
);
int
state
=
var_GetInteger
(
p_input
,
"state"
);
if
(
(
state
==
PAUSE_S
)
&&
if
(
(
state
==
PAUSE_S
)
&&
(
strcmp
(
psz_cmd
,
"pause"
)
!=
0
)
)
(
strcmp
(
psz_cmd
,
"pause"
)
!=
0
)
&&
(
strcmp
(
psz_cmd
,
"frame"
)
!=
0
)
)
{
{
msg_rc
(
"%s"
,
_
(
"Press menu select or pause to continue."
)
);
msg_rc
(
"%s"
,
_
(
"Press menu select or pause to continue."
)
);
}
}
...
@@ -1099,6 +1104,11 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -1099,6 +1104,11 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
var_SetInteger
(
p_input
,
"rate"
,
INPUT_RATE_DEFAULT
);
var_SetInteger
(
p_input
,
"rate"
,
INPUT_RATE_DEFAULT
);
i_error
=
VLC_SUCCESS
;
i_error
=
VLC_SUCCESS
;
}
}
else
if
(
!
strcmp
(
psz_cmd
,
"frame"
)
)
{
var_TriggerCallback
(
p_input
,
"frame-next"
);
i_error
=
VLC_SUCCESS
;
}
else
if
(
!
strcmp
(
psz_cmd
,
"chapter"
)
||
else
if
(
!
strcmp
(
psz_cmd
,
"chapter"
)
||
!
strcmp
(
psz_cmd
,
"chapter_n"
)
||
!
strcmp
(
psz_cmd
,
"chapter_n"
)
||
!
strcmp
(
psz_cmd
,
"chapter_p"
)
)
!
strcmp
(
psz_cmd
,
"chapter_p"
)
)
...
...
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