Public bug reported:

When redirecting stderr to stdout, vlc hangs for some seconds:

With redirect:
% time vlc --play-and-exit ~/Videos/foo.avi 2>&1 | grep foo
vlc --play-and-exit ~/Videos/foo.avi 2>&1  0.46s user 0.15s system 35% cpu 
1.712 total
grep foo  0.00s user 0.00s system 0% cpu 50.937 total

Normal:
% time vlc --play-and-exit ~/Videos/foo.avi | grep foo
VLC media player 1.1.12 The Luggage (revision exported)
Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
[0x9c0692c] main libvlc: Running vlc with the default interface. Use 'cvlc' to 
use vlc without interface.
Blocked: call to setlocale(6, "")
Blocked: call to setlocale(6, "")

(process:31781): Gtk-WARNING **: Locale not supported by C library.
 Using the fallback 'C' locale.
Blocked: call to setlocale(6, "")
xdg-screensaver: Window 0x054001c5 does not exist
vlc --play-and-exit ~/Videos/foo.avi  0.44s user 0.14s system 37% cpu 1.548 
total
grep foo  0.00s user 0.00s system 0% cpu 1.417 total

I am using this to find out if a file has been played completely (by
grepping for "main playlist: end of playlist, exiting").

This used to work as expected (without a timeout of ~50 seconds), but
has regressed during the last months (maybe when upgrading to Ubuntu
Oneiric).

I have tested a nightly snapshot
(1.2.0~~git20111110+r996-0~r47~oneiric1), which has the same problem.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: vlc 1.1.12-2~oneiric1
ProcVersionSignature: Ubuntu 3.0.0-14.23-generic-pae 3.0.9
Uname: Linux 3.0.0-14-generic-pae i686
ApportVersion: 1.23-0ubuntu4
Architecture: i386
Date: Mon Nov 28 19:42:42 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
SourcePackage: vlc
UpgradeStatus: Upgraded to oneiric on 2011-09-29 (59 days ago)

** Affects: vlc (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 oneiric running-unity

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/897341

Title:
  vlc hangs after exiting when its stderr is redirected to stdout

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vlc/+bug/897341/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to