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
88a0b150
Commit
88a0b150
authored
Mar 08, 2010
by
Fabio Ritrovato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MTP: update to libmtp 1.0.0 + fixes
parent
2974955f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
configure.ac
configure.ac
+1
-1
modules/services_discovery/mtp.c
modules/services_discovery/mtp.c
+10
-2
No files found.
configure.ac
View file @
88a0b150
...
...
@@ -4237,7 +4237,7 @@ PKG_ENABLE_MODULES_VLC([UDEV], [], [libudev >= 142], [Linux udev services discov
dnl
dnl MTP devices services discovery
PKG_ENABLE_MODULES_VLC([MTP], [
], [libmtp >= 0.3.0],[MTP devices support],
[auto])
PKG_ENABLE_MODULES_VLC([MTP], [
mtp access_mtp], [libmtp >= 1.0.0], [MTP devices support],
[auto])
dnl
dnl Lirc plugin
...
...
modules/services_discovery/mtp.c
View file @
88a0b150
...
...
@@ -147,6 +147,8 @@ static void *Run( void *data )
msg_Dbg
(
p_sd
,
"New device found"
);
if
(
AddDevice
(
p_sd
,
&
p_rawdevices
[
0
]
)
==
VLC_SUCCESS
)
i_status
=
1
;
else
i_status
=
2
;
}
else
{
...
...
@@ -161,7 +163,13 @@ static void *Run( void *data )
}
free
(
p_rawdevices
);
vlc_restorecancel
(
canc
);
msleep
(
500000
);
if
(
i_status
==
2
)
{
msleep
(
5000000
);
i_status
=
0
;
}
else
msleep
(
500000
);
}
return
NULL
;
}
...
...
@@ -216,7 +224,7 @@ static int AddDevice( services_discovery_t *p_sd,
}
else
{
msg_
Warn
(
p_sd
,
"No device found, after all
"
);
msg_
Info
(
p_sd
,
"The device seems to be mounted, unmount it first
"
);
return
VLC_EGENERIC
;
}
}
...
...
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