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 114208 - filesink now ignores NEW_MEDIA
filesink now ignores NEW_MEDIA
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other other
: Normal normal
: 0.7.x
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2003-06-01 17:52 UTC by Joshua N Pritikin
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
this one (1.11 KB, patch)
2003-06-01 18:22 UTC, Ronald Bultje
none Details | Review
core patch to remove new_media (2.52 KB, patch)
2003-06-01 20:11 UTC, Ronald Bultje
none Details | Review
plugins patch to remove new_media (3.78 KB, patch)
2003-06-01 20:12 UTC, Ronald Bultje
none Details | Review

Description Joshua N Pritikin 2003-06-01 17:52:34 UTC
Today, Ronald B. committed a patch to remove the NEW_MEDIA support from
filesink.  No problem, except that there isn't any alternative yet.

For example, i have a pipeline to extract frames from a film using pngenc.
 pngenc generates NEW_MEDIA events between each buffer because each png
should be in a separate file.

So what is the solution?
Comment 1 Ronald Bultje 2003-06-01 18:22:14 UTC
OK, general idea: NEW_MEDIA was a bad idea. EOS should be enough.

So, when going to PLAYING, filesink openes a file. On EOS, it closes
it. What should be done is that the application listens to EOS, then
sets a new (next) filename to filesink and sets the pipeline back to
PLAYING.

This is basically what NEW_MEDIA was intended to do, except that the
code was horribly wrong, had memleaks all over the place and was badly
limited. This proposal works much better.

What's needed is simply that the client app listens to EOS and sets a
new location and resets the pipeline to PLAYING on EOS (and other
elements need to use EOS instead of NEW_MEDIA). In PAUSED when a new
filename is set, filesink must then immediately open it. See attached
patch.
Comment 2 Ronald Bultje 2003-06-01 18:22:45 UTC
Created attachment 17045 [details] [review]
this one
Comment 3 Joshua N Pritikin 2003-06-01 18:38:20 UTC
And change pngenc to emit EOS instead of NEW_MEDIA?
Comment 4 Ronald Bultje 2003-06-01 19:57:52 UTC
Yes. I've got two patches (for core and plugins) coming up to remove
the NEW_MEDIA event alltogether.
Comment 5 Ronald Bultje 2003-06-01 20:11:05 UTC
Created attachment 17048 [details] [review]
core patch to remove new_media
Comment 6 Ronald Bultje 2003-06-01 20:12:39 UTC
Created attachment 17049 [details] [review]
plugins patch to remove new_media
Comment 7 Ronald Bultje 2003-06-07 00:17:52 UTC
applied to CVS.