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
4ae811b6
Commit
4ae811b6
authored
Mar 29, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Motion: fix the vlc_object_find bug and flag the other bugs
parent
de401510
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
7 deletions
+18
-7
modules/control/motion.c
modules/control/motion.c
+18
-7
No files found.
modules/control/motion.c
View file @
4ae811b6
...
...
@@ -35,6 +35,7 @@
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_interface.h>
#include <vlc_playlist.h>
#include <vlc_vout.h>
#ifdef HAVE_UNISTD_H
...
...
@@ -189,11 +190,11 @@ static void RunIntf( intf_thread_t *p_intf )
for
(
;;
)
{
vout_thread_t
*
p_vout
;
const
char
*
psz_filter
,
*
psz_type
;
bool
b_change
=
false
;
/* Wait a bit, get orientation, change filter if necessary */
#warning FIXME: check once (or less) per picture, not once per interval
msleep
(
INTF_IDLE_SLEEP
);
int
canc
=
vlc_savecancel
();
...
...
@@ -243,14 +244,24 @@ static void RunIntf( intf_thread_t *p_intf )
if
(
b_change
)
{
p_vout
=
(
vout_thread_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_VOUT
,
FIND_ANYWHERE
);
if
(
p_vout
)
#warning FIXME: refactor this plugin as a video filter!
input_thread_t
*
p_input
;
p_input
=
playlist_CurrentInput
(
pl_Get
(
p_intf
)
);
if
(
p_input
)
{
config_PutPsz
(
p_vout
,
"transform-type"
,
psz_type
);
var_SetString
(
p_vout
,
"video-filter"
,
psz_filter
);
vlc_object_release
(
p_vout
);
vout_thread_t
*
p_vout
;
p_vout
=
input_GetVout
(
p_input
);
if
(
p_vout
)
{
#warning FIXME: do not override the permanent configuration!
#warning FIXME: transform-type does not exist anymore
config_PutPsz
(
p_vout
,
"transform-type"
,
psz_type
);
var_SetString
(
p_vout
,
"video-filter"
,
psz_filter
);
vlc_object_release
(
p_vout
);
}
vlc_object_release
(
p_input
);
i_oldx
=
i_x
;
}
}
...
...
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