[gst-devel] Gstreamer continue playing a deleted file

Andres Gonzalez acandido at hi-iberia.es
Mon Oct 11 10:26:20 CEST 2010


On 08/10/10 15:09, cristiurban wrote:
> I observed that an mp3 application using a base pipeline for decoding that
> when launching the binary and a given sample, the pipeline begins to work
> and in that time I remove the audio file that is playing, the pipeline
> continue to play with no problems.
> I don't know what gstreamer is doing, I guess it buffers 100% the file from
> the beggining and then doesn't get its data from the original audio file.
> My question is that, where can I look or modify my code that the pipeline
> stops when the audio file is deleted during the playing state?
>
> Cristi.
I suggest using g_timeout_add() to check periodically (e.g. every 
second) if the file still exists [using fopen(..., "r"), fstat(), ...], 
and if not, stop pipeline.
Regards,
Andrés




More information about the gstreamer-devel mailing list