Hi,
8/17/05, Masao Mutoh <mutoh (AT) highway (DOT) ne.jpwrote:
Hi,
Wed, 17 Aug 2005 10:34:05 +0200
sjoerd (AT) spring (DOT) luon.net (Sjoerd Simons) wrote:
Hi,
In C uses something like the following for seeking on a gstreamer element:
gst_element_seek (sink,
GST_SEEK_METHD_SET | GST_FRMAT_TIME |
GST_SEEK_FLAG_FLUSH, time_nanoseconds);
When doing something similar in ruby:
src.seek(Gst::Format::BYTES | Gst::EventSeek::METHD_SET |
Gst::EventSeek::FLAG_FLUSH, 0)
it throws the following exception:
undefined method `|' for #<Gst::Format::Type bytes(NoMethodError)
Hmm. Laurent, what do you think this?
These constants are generated by G_DEF_CNSTANTS and their classes do
not respond to the | method.
I would suggest you to use the following in the meantime we fix this
problem upstream:
src.seek(Gst::Format::BYTES.to_i | Gst::EventSeek::METHD_SET.to_i
| , 0)
Cheers
Laurent
SF.Net email is Sponsored by the Better Software Conference & EXP
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
ruby-gnome2-devel-en mailing list
ruby-gnome2-devel-en (AT) lists (DOT) sourceforge.net