[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libextractor] branch master updated: test with media_new_path
From: |
gnunet |
Subject: |
[libextractor] branch master updated: test with media_new_path |
Date: |
Thu, 06 May 2021 13:00:21 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository libextractor.
The following commit(s) were added to refs/heads/master by this push:
new 3466604 test with media_new_path
3466604 is described below
commit 3466604202089c9381af32b138683e5ac2d9ed67
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu May 6 12:58:07 2021 +0200
test with media_new_path
---
src/plugins/test-vlc.c | 24 ++++++------------------
1 file changed, 6 insertions(+), 18 deletions(-)
diff --git a/src/plugins/test-vlc.c b/src/plugins/test-vlc.c
index c80f6b6..6bef893 100644
--- a/src/plugins/test-vlc.c
+++ b/src/plugins/test-vlc.c
@@ -161,25 +161,13 @@ main(int argc,
libvlc_log_set (vlc,
&my_logger,
NULL);
- fprintf (stderr,
- "Opening file `%s'\n",
- argv[1]);
- {
- int fd = open (argv[1],
- O_RDONLY);
- if (-1 == fd)
- {
- fprintf (stderr,
- "Open failed: %s\n",
- strerror (errno));
- libvlc_release (vlc);
- return;
- }
- media = libvlc_media_new_fd (vlc,
- fd);
- }
+ media = libvlc_media_new_path (vlc,
+ argv[1]);
if (NULL == media)
{
+ fprintf (stderr,
+ "Opening path `%s' failed!\n",
+ argv[1]);
libvlc_release (vlc);
return;
}
@@ -205,7 +193,7 @@ main(int argc,
}
fprintf (stderr,
"Sleeping\n");
- sleep (1);
+ sleep (2);
extract (NULL,
media);
libvlc_media_release (media);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libextractor] branch master updated: test with media_new_path,
gnunet <=