diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-08-06 21:42:02 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-08-06 21:42:02 +0200 |
commit | e268bd6e28c4ba7b1d8c86b0885a837b793c1f15 (patch) | |
tree | 10fc75ccf254da7536752d5c4137b28571f1e30c /ext/spc | |
parent | 15b29bb8347938aebe920d4ebd2ec211dd43052a (diff) | |
download | gst-plugins-bad-e268bd6e28c4ba7b1d8c86b0885a837b793c1f15.tar.gz gst-plugins-bad-e268bd6e28c4ba7b1d8c86b0885a837b793c1f15.tar.bz2 gst-plugins-bad-e268bd6e28c4ba7b1d8c86b0885a837b793c1f15.zip |
spcdec: Forward all unknown src events upstream and don't restrict to SPC
Diffstat (limited to 'ext/spc')
-rw-r--r-- | ext/spc/gstspc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/spc/gstspc.c b/ext/spc/gstspc.c index a66da7d5..c5ca2457 100644 --- a/ext/spc/gstspc.c +++ b/ext/spc/gstspc.c @@ -274,6 +274,8 @@ gst_spc_dec_src_event (GstPad * pad, GstEvent * event) gst_event_parse_seek (event, &rate, &format, &flags, &start_type, &start, &stop_type, &stop); + gst_event_unref (event); + if (format != GST_FORMAT_TIME) { GST_DEBUG_OBJECT (spc, "seeking is only supported in TIME format"); break; @@ -333,10 +335,10 @@ gst_spc_dec_src_event (GstPad * pad, GstEvent * event) break; } default: + result = gst_pad_push_event (spc->sinkpad, event); break; } - gst_event_unref (event); gst_object_unref (spc); return result; @@ -531,7 +533,7 @@ spc_setup (GstSpcDec * spc) gme_err = gme_open_data (GST_BUFFER_DATA (spc->buf), GST_BUFFER_SIZE (spc->buf), &spc->player, 32000); - if (gme_err || !spc->player || gme_type (spc->player) != gme_spc_type) { + if (gme_err || !spc->player) { if (spc->player) { gme_delete (spc->player); spc->player = NULL; |