After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 607440 - [wavenc] should post warning if the file isn't finished properly on pipeline shutting down
[wavenc] should post warning if the file isn't finished properly on pipeline ...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
unspecified
Other other
: Normal normal
: 0.10.18
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-01-19 13:37 UTC by puneet
Modified: 2010-02-09 09:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test code (2.31 KB, text/plain)
2010-01-19 13:37 UTC, puneet
Details

Description puneet 2010-01-19 13:37:12 UTC
Created attachment 151755 [details]
test code

hav attached the file for the pipeline which am creating .

am able to record file with audiotestsrc but the duration shown while playing with vlc player is not proper it always shows 3:22:00 duration which is wrong. irrespective of timeout ( 5 sec , 10 sec , 20 sec , 30 sec ) values.

is am doing something wrong while shutting down pipeline or do i need to do any thing elese in addition to this. ?
Comment 1 Tim-Philipp Müller 2010-01-19 13:55:04 UTC
You need to finalise the wav file properly. The source needs to push an EOS event down the pipeline, and then wavenc will hopefully write proper headers.

Try something like this:

static gboolean
quit_loop (gpointer data)
{
   gst_element_send_event (bin_a, gst_event_new_eos ());
   /* now wait until EOS message is received on bus */
}


We shold make wavenc post a warning message if it shuts down without having finalised the header.
Comment 2 puneet 2010-01-20 05:32:10 UTC
HI Tim it resolved the issue . now duration of file is as expected.
Thanks :) 

Closing the bug.
Comment 3 Thiago Sousa Santos 2010-01-20 12:16:25 UTC
I think Tim meant to turn this into a wavenc bug, to make it post a warning if it doesn't finish properly.
Comment 4 Thiago Sousa Santos 2010-01-20 18:33:50 UTC
Fixed.

Module: gst-plugins-good
Branch: master
Commit: ef2b7bbcab5fbc8139db72f47b81f32fd979f001
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=ef2b7bbcab5fbc8139db72f47b81f32fd979f001

Author: Thiago Santos <thiago.sousa.santos@collabora.co.uk>
Date:   Wed Jan 20 15:11:15 2010 -0300

wavenc: Post warning if file isnt finished properly

When the pipeline is shut down and the file isn't
finished properly, wavenc should post a warning.

Fixes #607440