summaryrefslogtreecommitdiff
path: root/src/libspudec/xine_decoder.c
diff options
context:
space:
mode:
authorRich J Wareham <richwareham@users.sourceforge.net>2001-10-18 14:42:59 +0000
committerRich J Wareham <richwareham@users.sourceforge.net>2001-10-18 14:42:59 +0000
commit99b10adaf384ec06310020e553e5081be6624128 (patch)
tree53b8e7b6004289cb922669b93170c97bec94fe24 /src/libspudec/xine_decoder.c
parentc19c9b4e2690724ef09066b37cfabdc81c171c06 (diff)
downloadxine-lib-99b10adaf384ec06310020e553e5081be6624128.tar.gz
xine-lib-99b10adaf384ec06310020e553e5081be6624128.tar.bz2
Slight re-ordering to make sure that input plugins can register event listeners
CVS patchset: 830 CVS date: 2001/10/18 14:42:59
Diffstat (limited to 'src/libspudec/xine_decoder.c')
-rw-r--r--src/libspudec/xine_decoder.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libspudec/xine_decoder.c b/src/libspudec/xine_decoder.c
index 46f4e21be..5f6109868 100644
--- a/src/libspudec/xine_decoder.c
+++ b/src/libspudec/xine_decoder.c
@@ -19,7 +19,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: xine_decoder.c,v 1.14 2001/10/05 11:10:00 miguelfreitas Exp $
+ * $Id: xine_decoder.c,v 1.15 2001/10/18 14:42:59 richwareham Exp $
*
* stuff needed to turn libspu into a xine decoder plugin
*/
@@ -226,6 +226,10 @@ static vo_overlay_t* spudec_get_overlay(ovl_src_t *ovl_src, int pts) {
static void spudec_event(spu_decoder_t *this_gen, spu_event_t *event) {
spudec_decoder_t *this = (spudec_decoder_t*) this_gen;
+ if((!this) || (!event)) {
+ return;
+ }
+
switch (event->sub_type) {
case SPU_EVENT_BUTTON:
{