diff options
Diffstat (limited to 'src/plugins/vlc_extractor.c')
-rw-r--r-- | src/plugins/vlc_extractor.c | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/src/plugins/vlc_extractor.c b/src/plugins/vlc_extractor.c index ab9dfb2..6005c86 100644 --- a/src/plugins/vlc_extractor.c +++ b/src/plugins/vlc_extractor.c @@ -17,7 +17,7 @@ Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -NOTE: This plugin is not yet working. Somehow libvlc never calls any of the IO callbacks. +THIS PLUGIN IS NOT WORKING, see #2075! */ /** @@ -314,7 +314,22 @@ EXTRACTOR_vlc_extract_method (struct EXTRACTOR_ExtractContext *ec) libvlc_log_set (vlc, &my_logger, NULL); - if (0) + if (1) + { + fprintf (stderr, + "Opening file `%s'\n", + "testdata/matroska_flame.mkv"); + media = libvlc_media_new_path (vlc, + "testdata/matroska_flame.mkv"); + if (NULL == media) + { + fprintf (stderr, + "Open failed\n"); + libvlc_release (vlc); + return; + } + } + else if (0) { fprintf (stderr, "Opening file `%s'\n", @@ -332,7 +347,7 @@ EXTRACTOR_vlc_extract_method (struct EXTRACTOR_ExtractContext *ec) media = libvlc_media_new_fd (vlc, fd); } - else + else if (0) { fprintf (stderr, "Reading via IPC\n"); @@ -343,6 +358,8 @@ EXTRACTOR_vlc_extract_method (struct EXTRACTOR_ExtractContext *ec) &close_cb, ec); } + else + abort (); if (NULL == media) { libvlc_release (vlc); @@ -370,7 +387,7 @@ EXTRACTOR_vlc_extract_method (struct EXTRACTOR_ExtractContext *ec) } fprintf (stderr, "Sleeping\n"); - sleep (1); + sleep (10); extract (ec, media); libvlc_media_release (media); |