GNOME Bugzilla – Bug 324000
[playbin] post error or message on unknown input
Last modified: 2006-02-04 15:20:11 UTC
Currently if you give playbin something unrecognizable like a html file as input, you get the following output and no message at all on the bus: ** (lt-vidplay:26296): WARNING **: no type on pad decoder:src0 Instead of that it should probably send an error message to the bus so the application can handle it.
The same applies for filetypes it recognizes but that can't be read, you get a message like: ** Message: don't know how to handle application/x-bzip And nothing at all on the bus.
I think this is fixed now, minus any demuxers not signalling no-more-pads for some reason at least: tim@flap:/media/samples$ gst-launch-0.10 playbin uri=file:///media/samples/random.data Setting pipeline to PAUSED ... ERROR: Pipeline doesn't want to pause. ERROR: from element /playbin0/decoder/typefind: Could not determine type of stream. tim@flap:/media/samples$ gst-launch-0.10 playbin uri=http://freedesktop.org/~tpm/random.data Setting pipeline to PAUSED ... Pipeline is PREROLLING ... ERROR: from element /playbin0/decoder/typefind: Could not determine type of stream. tim@flap:/media/samples$ gst-launch-0.10 playbin uri=file:///media/samples/random.bz2 Setting pipeline to PAUSED ... ** Message: don't know how to handle application/x-bzip Pipeline is PREROLLING ... ERROR: from element /playbin0: "file:///media/samples/random.bz2" is not a media file tim@flap:~/gst-plugins-ugly/gst/realmedia$ gst-launch-0.10 playbin uri=file:///media/samples/bugs/153263.rm Setting pipeline to PAUSED ... Pipeline is PREROLLING ... ** Message: don't know how to handle audio/x-sipro, flavor=(int)3, rate=(int)16000, channels=(int)1, width=(int)16, leaf_size=(int)0, packet_size=(int)320, height=(int)6 ERROR: from element /playbin0: You do not have a decoder installed to handle "file:///media/samples/bugs/153263.rm". You might need to install the necessary plugins. Please re-open or file a new bug if you still have cases where this doesn't work right.