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 163383 - [PATCH] ogm plugins won't register
[PATCH] ogm plugins won't register
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other FreeBSD
: Normal normal
: 0.8.9
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-01-08 23:21 UTC by Koop Mast
Modified: 2005-01-09 13:33 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
patch plugin loading func to not fail if plugin was already loaded (1.05 KB, patch)
2005-01-09 13:07 UTC, Stephane Loeuillet
committed Details | Review

Description Koop Mast 2005-01-08 23:21:42 UTC
When I drop a ogm in the totem window I only hear the sound and the folowing
printed in the console. 

** (totem:31649): WARNING **: don't know how to handle application/x-ogm-video
** (totem:31649): WARNING **: don't know how to handle application/octet-stream
** (totem:31649): WARNING **: don't know how to handle application/octet-stream
** (totem:31649): WARNING **: unknown stream found
** (totem:31649): WARNING **: two audio streams found, playing first one
** (totem:31649): WARNING **: unknown stream found
** (totem:31649): WARNING **: unknown stream found

When I drop the video again in the totem window. The video works again.

** (totem:31649): WARNING **: don't know how to handle application/octet-stream
** (totem:31649): WARNING **: don't know how to handle application/octet-stream
** (totem:31649): WARNING **: two audio streams found, playing first one
** (totem:31649): WARNING **: unknown stream found
** (totem:31649): WARNING **: unknown stream found

Gstreamer version 0.8.8
Gstreamer-plugins version 0.8.7
Totem version 0.100
Comment 1 Stephane Loeuillet 2005-01-09 12:05:02 UTC
can you give us the result of those two commands ? (as root)

gst-register-0.8 | grep ogg
gst-inspect-0.8 | grep "^ogg:"

and tell us which arch/distro you use too
Comment 2 Koop Mast 2005-01-09 12:26:13 UTC
i386 FreeBSD 5.3-stable

root@heater:~# gst-register-0.8 | grep ogg
Added plugin ogg with 2 features.

root@heater:~# gst-inspect-0.8 | grep "^ogg:"
ogg:  oggdemux: ogg demuxer
ogg:  oggmux: ogg muxer
Comment 3 Stephane Loeuillet 2005-01-09 12:32:29 UTC
hum, that means that the ogm elements can't register (it first registers
oggdemux and oggmux and fails to register ogm[audio/video]parse

i had that problem and did a fix that i commited before the 0.8.7 plugin
release, but i suppose it was not enought

2004-12-26  Stephane Loeuillet  <stephane.loeuillet@tiscali.fr>

	* ext/ogg/gstogg.c:
	* ext/ogg/gstogmparse.c:
	  fix ogm[audio/video]parse plugin registration
	  (riff won't load if bytestream is already loaded)

perhaps gst-lib loading works differently on FreeBSD, i'll try to find a fix shortly
Comment 4 Stephane Loeuillet 2005-01-09 13:07:39 UTC
Created attachment 35723 [details] [review]
patch plugin loading func to not fail if plugin was already loaded

please try this patch against gstreamer 0.8.8 (core, not plugins)

then, once compiled and installed, redo the 2 commands written before (register
and inspect)
Comment 5 Stephane Loeuillet 2005-01-09 13:13:47 UTC
if it doesn't help, please also apply the patch from bug #163234
(plugin loading thread safety)
Comment 6 Koop Mast 2005-01-09 13:21:53 UTC
After recompiling with the patch in #4, it works I would say.

root@heater:/usr/ports/multimedia/gstreamer# gst-register-0.8 | grep ogg
Added plugin ogg with 4 features.

root@heater:/usr/ports/multimedia/gstreamer# gst-inspect-0.8 | grep "^ogg"
ogg:  oggdemux: ogg demuxer
ogg:  oggmux: ogg muxer
ogg:  ogmaudioparse: OGM audio stream parser
ogg:  ogmvideoparse: OGM video stream parser
Comment 7 Stephane Loeuillet 2005-01-09 13:24:44 UTC
ok, and does it work now in totem ? (on first run ?, second run ?)
Comment 8 Koop Mast 2005-01-09 13:29:12 UTC
It work right on the first try.