summaryrefslogtreecommitdiffstats
path: root/ext/jpeg/gstjpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/jpeg/gstjpeg.c')
-rw-r--r--ext/jpeg/gstjpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/jpeg/gstjpeg.c b/ext/jpeg/gstjpeg.c
index eec4a451..96c3b584 100644
--- a/ext/jpeg/gstjpeg.c
+++ b/ext/jpeg/gstjpeg.c
@@ -86,6 +86,7 @@ plugin_init (GModule *module, GstPlugin *plugin)
dec = gst_element_factory_new("jpegdec",GST_TYPE_JPEGDEC,
&gst_jpegdec_details);
g_return_val_if_fail(dec != NULL, FALSE);
+ gst_element_factory_set_rank (dec, GST_ELEMENT_RANK_PRIMARY);
/* register sink pads */
jpegdec_sink_template = gst_pad_template_new ("sink", GST_PAD_SINK,