vlc hangs after exiting when its stderr is redirected to stdout
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
VLC media player |
Invalid
|
Undecided
|
Unassigned | ||
vlc (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
xdg-utils (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
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(
Blocked: call to unsetenv(
[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~
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: vlc 1.1.12-2~oneiric1
ProcVersionSign
Uname: Linux 3.0.0-14-
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)
description: | updated |
Changed in vlc (Ubuntu): | |
status: | Incomplete → Invalid |
Changed in vlc: | |
importance: | Undecided → Unknown |
status: | Invalid → Unknown |
Manually updating upstream status.