[gstreamer-bugs] [Bug 599389] New: Appsrc & playbin2 reading too much data,
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Fri Oct 23 03:22:48 PDT 2009
https://bugzilla.gnome.org/show_bug.cgi?id=599389
GStreamer | gst-plugins-base | 0.10.23
Summary: Appsrc & playbin2 reading too much data,
Classification: Desktop
Product: GStreamer
Version: 0.10.23
OS/Version: Windows
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gst-plugins-base
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: adam at movency.com
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME target: ---
GNOME version: ---
Hi, using version 0.10.23 of the base plugins, I am attempting to use appsrc &
playbin2 to stream some music files.
All works fine until I attempt to seek to a position in the song.
I register my seek-data & need-data callbacks as follows:
g_signal_connect (app->appsrc, "need-data", G_CALLBACK (feed_data), app);
g_signal_connect (app->appsrc, "seek-data", G_CALLBACK (seek_data), app);
I have a seek to time function which makes a call to gst_element_seek as
follows:
gst_element_seek (pipeline, 1.0, GST_FORMAT_TIME,
(GstSeekFlags)GST_SEEK_FLAG_FLUSH, GST_SEEK_TYPE_SET, offset,
GST_SEEK_TYPE_NONE, GST_CLOCK_TIME_NONE)
When I attempt to seek to a position, I see my call to seek-data called with
the correct offset, my feed-data is then called as expected, but, I then see a
massive loop of seek_data & feed_data.
The amount of loops seems related to the position I am seeking to, i.e if I
seek to byte 100 (Illustrative) I seek direct to byte 100 then read a further
100 bytes! If my file is only 150 bytes, I get an EOS and stop.
Is this a bug or am I using these functions incorrectly?
Thanks.
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the Gstreamer-bugs
mailing list