[gst-devel] Region struct on cothread data

Erik Walthinsen omega at cse.ogi.edu
Wed Nov 29 09:58:41 CET 2000

I'm a bit confused as to why cothread_[gs]et_data() is used to pass the
region structure in gstbin.c.  Why not simply drop the pointer into the
pad?  Pads aren't so common that thowing another pointer into them will
cause a space problem, but forcing a function call and pthread lookup by
string for every cothread switch into a Src very well could be a
performance problem. 

I'll leave it for now, but unless there's a good reason to keep it that
way, I'd be inclined to go change that.

         Erik Walthinsen <omega at cse.ogi.edu> - Staff Programmer @ OGI
        Quasar project - http://www.cse.ogi.edu/DISC/projects/quasar/
   Video4Linux Two drivers and stuff - http://www.cse.ogi.edu/~omega/v4l2/
       /  \             SEUL: Simple End-User Linux - http://www.seul.org/
      |    | M E G A           Helping Linux become THE choice
      _\  /_                          for the home or office user

More information about the gstreamer-devel mailing list