aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/vlc_extractor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/vlc_extractor.c')
-rw-r--r--src/plugins/vlc_extractor.c25
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 @@
17 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA. 18 Boston, MA 02110-1301, USA.
19 19
20NOTE: This plugin is not yet working. Somehow libvlc never calls any of the IO callbacks. 20THIS PLUGIN IS NOT WORKING, see #2075!
21 21
22*/ 22*/
23/** 23/**
@@ -314,7 +314,22 @@ EXTRACTOR_vlc_extract_method (struct EXTRACTOR_ExtractContext *ec)
314 libvlc_log_set (vlc, 314 libvlc_log_set (vlc,
315 &my_logger, 315 &my_logger,
316 NULL); 316 NULL);
317 if (0) 317 if (1)
318 {
319 fprintf (stderr,
320 "Opening file `%s'\n",
321 "testdata/matroska_flame.mkv");
322 media = libvlc_media_new_path (vlc,
323 "testdata/matroska_flame.mkv");
324 if (NULL == media)
325 {
326 fprintf (stderr,
327 "Open failed\n");
328 libvlc_release (vlc);
329 return;
330 }
331 }
332 else if (0)
318 { 333 {
319 fprintf (stderr, 334 fprintf (stderr,
320 "Opening file `%s'\n", 335 "Opening file `%s'\n",
@@ -332,7 +347,7 @@ EXTRACTOR_vlc_extract_method (struct EXTRACTOR_ExtractContext *ec)
332 media = libvlc_media_new_fd (vlc, 347 media = libvlc_media_new_fd (vlc,
333 fd); 348 fd);
334 } 349 }
335 else 350 else if (0)
336 { 351 {
337 fprintf (stderr, 352 fprintf (stderr,
338 "Reading via IPC\n"); 353 "Reading via IPC\n");
@@ -343,6 +358,8 @@ EXTRACTOR_vlc_extract_method (struct EXTRACTOR_ExtractContext *ec)
343 &close_cb, 358 &close_cb,
344 ec); 359 ec);
345 } 360 }
361 else
362 abort ();
346 if (NULL == media) 363 if (NULL == media)
347 { 364 {
348 libvlc_release (vlc); 365 libvlc_release (vlc);
@@ -370,7 +387,7 @@ EXTRACTOR_vlc_extract_method (struct EXTRACTOR_ExtractContext *ec)
370 } 387 }
371 fprintf (stderr, 388 fprintf (stderr,
372 "Sleeping\n"); 389 "Sleeping\n");
373 sleep (1); 390 sleep (10);
374 extract (ec, 391 extract (ec,
375 media); 392 media);
376 libvlc_media_release (media); 393 libvlc_media_release (media);