fdsrc: cleanup parameter initialisation and add comemnt+logging
authorStefan Kost <ensonic@users.sf.net>
Wed, 17 Feb 2010 09:31:07 +0000 (11:31 +0200)
committerStefan Kost <ensonic@users.sf.net>
Wed, 17 Feb 2010 09:31:07 +0000 (11:31 +0200)
commit3c2abf55819441e0f65ec9f44e06b4dd7cb61217
tree8748aba533a34eaa34bd8318b14b130111d2de32
parenta12fc2646141eb9832631be485be4b95306beb7c
fdsrc: cleanup parameter initialisation and add comemnt+logging

Initialize new_fd with DEFAULT_FD and fd with -1. Setting the property will set
new_fd and in _update_fd() we cehck fd against -1. Also add a coment about the
warning we get in the log from gst_poll_remove_fd(). We could get rid of the
warning if we want by tracking if fd has been added to fdset.
plugins/elements/gstfdsrc.c