mirror of
https://github.com/mpv-player/mpv
synced 2025-01-11 09:29:29 +00:00
use the documented default video device /dev/video0 instead of /dev/video that is missing on most systems
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15247 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
1390092640
commit
6b82b8e381
@ -776,7 +776,7 @@ tvi_handle_t *tvi_init_v4l2(char *video_dev, char *audio_dev)
|
||||
}
|
||||
PRIV->video_fd = -1;
|
||||
|
||||
PRIV->video_dev = strdup(video_dev? video_dev: "/dev/video");
|
||||
PRIV->video_dev = strdup(video_dev? video_dev: "/dev/video0");
|
||||
if (!PRIV->video_dev) {
|
||||
free_handle(tvi_handle);
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user