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 500142 - switch element in switch plugin should be renamed
switch element in switch plugin should be renamed
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal enhancement
: 0.10.6
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-11-28 07:54 UTC by Stefan Sauer (gstreamer, gtkdoc dev)
Modified: 2008-01-29 12:33 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Stefan Sauer (gstreamer, gtkdoc dev) 2007-11-28 07:54:35 UTC
the switch element in bad is infact a "N-to-1 input switch" (as also the gst-inspect tells). It would be good to rename the element in oder to also be able to add a "1-to-N output switch" to the same plugin.

So what would be a good element name?
* input-switch (still ambigous)
* switch-Nto1
* input-select (makes clear that it selects 1 of N inputs)
Comment 1 Wim Taymans 2007-11-29 10:51:02 UTC
There is an element in playbin (not exported) that does the same thing. Getting the locking, buffer_alloc, segments and switching completely right is not very easy.
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2007-11-30 12:09:56 UTC
Wim, are you refering to the "StreamSelector" - "N-to-1 input stream_selectoring".
Comment 3 David Schleef 2007-12-07 23:03:11 UTC
What is a 1-to-N output switch useful for?
Comment 4 Jaap A. Haitsma 2007-12-07 23:24:09 UTC
We for instance would like to use it in cheese [1]

We have basically two modes shooting a video or a photo. Based on the mode a different recording pipeline should be used.


[1] http://www.gnome.org/projects/cheese/
Comment 5 Jaap A. Haitsma 2007-12-07 23:25:29 UTC
Forgot to mention that I filed bug #500505 requesting the 1-N switch
Comment 6 Andy Wingo 2007-12-17 15:24:43 UTC
Note that switch's code has now been replaced with streamselector's code, with some modifications. Probably the correct path now is for playbin to think about using switch, potentially renaming back to streamselector, exported in playbin's .so file. Dunno.
Comment 7 Stefan Sauer (gstreamer, gtkdoc dev) 2008-01-29 07:39:05 UTC
2008-01-29  Stefan Kost  <ensonic@users.sf.net>

	* configure.ac:
	* docs/plugins/Makefile.am:
	* docs/plugins/gst-plugins-bad-plugins-docs.sgml:
	* docs/plugins/gst-plugins-bad-plugins-sections.txt:
	* docs/plugins/gst-plugins-bad-plugins.args:
	* docs/plugins/gst-plugins-bad-plugins.hierarchy:
	* docs/plugins/gst-plugins-bad-plugins.interfaces:
	* docs/plugins/gst-plugins-bad-plugins.signals:
	* docs/plugins/inspect/plugin-metadata.xml:
	* docs/plugins/inspect/plugin-selector.xml:
	* docs/plugins/inspect/plugin-soundtouch.xml:
	* docs/plugins/inspect/plugin-switch.xml:
	* gst/selector/.cvsignore:
	* gst/selector/Makefile.am:
	* gst/selector/gstinputselector.c:
	* gst/selector/gstinputselector.h:
	* gst/selector/gstoutputselector.c:
	* gst/selector/gstoutputselector.h:
	* gst/selector/gstselector-marshal.list:
	* gst/selector/gstselector.c:
	* gst/selector/selector.vcproj:
	* gst/switch/.cvsignore:
	* gst/switch/Makefile.am:
	* gst/switch/gstswitch-marshal.list:
	* gst/switch/gstswitch.c:
	* gst/switch/gstswitch.h:
	* gst/switch/switch.vcproj:
	* tests/icles/.cvsignore:
	* tests/icles/Makefile.am:
	* tests/icles/output-selector-test.c:
	  Replace the switch plugin with the selector plugin. Add output-
	  selector as the opposite of input-selectoo (was switch). Add a test
	  for output-selector. Add docs for the elements. The vcproj needs
	  update. Fixes #500142.
Comment 8 Jaap A. Haitsma 2008-01-29 08:27:55 UTC
This output selector will be handy for Cheese. Thanks