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 165726 - [PATCH] New plugin: freeze
[PATCH] New plugin: freeze
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins
git master
Other Linux
: Normal enhancement
: 0.8.9
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-01-30 17:30 UTC by Gergely Nagy
Modified: 2005-04-14 11:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch adding the freeze plugin (10.82 KB, patch)
2005-01-30 17:32 UTC, Gergely Nagy
none Details | Review
The updated freeze plugin (12.54 KB, patch)
2005-01-31 08:56 UTC, Gergely Nagy
accepted-commit_now Details | Review
Latest patch (11.49 KB, patch)
2005-04-14 11:21 UTC, Gergely Nagy
committed Details | Review

Description Gergely Nagy 2005-01-30 17:30:07 UTC
I needed a solution to make a continous stream from a set of buffers (eg, to
create a never-ending stream from a single jpeg), and found no plugins, neither
plugin combinations that could do this (identity with its duplicate property
came close, but not enough).

The result is the freeze plugin, implementing a loop-based element, which pulls
buffers from its sink, stores it in a GList, then pushes the current entry out
on the srcpad. By default (max-buffers==0), it does not have a limit of buffers.
When it reached its limit, no further buffers will be accepted (ie, they'll be
discarded). This suits me, and was easier to implement, but can be changed if so
need be. All pushed out buffers will have a new timestamp and duration.

Since the duration is calculated using the framerate, freeze only works for
video for now (however, this can be changed, when needed).
Comment 1 Gergely Nagy 2005-01-30 17:32:32 UTC
Created attachment 36730 [details] [review]
Patch adding the freeze plugin

The C source files have a comment block at the end, if applying the patch,
please keep those (or at least, the arch-tag line) - that makes my version
control system happy.
Comment 2 Gergely Nagy 2005-01-31 08:56:51 UTC
Created attachment 36751 [details] [review]
The updated freeze plugin

This is an updated version of the patch, removing the buffer duration
recalculation, and thus the requirement that it only works with video buffers.
The default max-buffers setting was changed from 0 (unlimited) to 1, for
safety's sake.
Comment 3 Ronald Bultje 2005-03-25 19:15:02 UTC
This is (according to various people) useful for debugging, so let's add it.
Gergely, can you please get CVS access?
Comment 4 Gergely Nagy 2005-04-14 11:21:06 UTC
Created attachment 45246 [details] [review]
Latest patch

This is the patch I'm going to commit. Changes since the previous one include
memory leak fixes and code-reindenting (thanks to gst-indent).