diff options
author | Luo Jinghua <sunmoon1997@gmail.com> | 2009-09-07 14:10:00 +0800 |
---|---|---|
committer | Luo Jinghua <sunmoon1997@gmail.com> | 2009-09-07 14:10:00 +0800 |
commit | c13039c982be7084c207c8859d3839d48e9958bb (patch) | |
tree | f589a8a576d48ae5ab3cf57a70d551ce62c5c90e | |
parent | 5c056e2527053a91d860e1425f37bca12679adb2 (diff) |
ppssrc: fixed a multiple instances checking
-rw-r--r-- | src/gstppssrc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gstppssrc.c b/src/gstppssrc.c index 0303260..cb2beae 100644 --- a/src/gstppssrc.c +++ b/src/gstppssrc.c @@ -648,17 +648,17 @@ gst_pps_src_start_full (GstBaseSrc * bsrc, gboolean force) return TRUE; } - if (ppssrc) { + if (ppssrc && ppssrc != src) { GST_ELEMENT_ERROR (src, RESOURCE, OPEN_READ, - (NULL), ("Couldn't open multipble instance of ppssrc")); + (NULL), ("Couldn't open multiple instance of ppssrc")); return FALSE; } - ppssrc = src; if (src->pps_initialized && src->info_changed) { gst_pps_src_close (src, TRUE); src->pps_initialized = FALSE; } + ppssrc = src; if (!src->pps_initialized) { ret = ppsvod_create (src->oem, src->terminal_type, src->device_id, gst_pps_src_callback); |