diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c
index 08c930b..8828180 100644
--- a/ext/x264/gstx264enc.c
+++ b/ext/x264/gstx264enc.c
@@ -1747,7 +1747,7 @@ gst_x264_enc_src_event (GstPad * pad, GstEvent * event)
       if (gst_structure_has_name (s, "GstForceKeyUnit")) {
         /* Set I frame request */
         GST_OBJECT_LOCK (encoder);
-        encoder->i_type = X264_TYPE_I;
+        encoder->i_type = X264_TYPE_IDR;
         encoder->forcekeyunit_event = gst_event_copy (event);
         GST_EVENT_TYPE (encoder->forcekeyunit_event) =
             GST_EVENT_CUSTOM_DOWNSTREAM;
@@ -1802,7 +1802,7 @@ gst_x264_enc_sink_event (GstPad * pad, GstEvent * event)
       s = gst_event_get_structure (event);
       if (gst_structure_has_name (s, "GstForceKeyUnit")) {
         GST_OBJECT_LOCK (encoder);
-        encoder->i_type = X264_TYPE_I;
+        encoder->i_type = X264_TYPE_IDR;
         GST_OBJECT_UNLOCK (encoder);
       }
       break;
