summaryrefslogtreecommitdiffstats
path: root/gst/rtp/gstrtpmp4vpay.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2006-02-10 17:37:39 +0000
committerWim Taymans <wim.taymans@gmail.com>2006-02-10 17:37:39 +0000
commit2bbf2b424d5edc180528bf9ab99b5a07ec9824e9 (patch)
treeb59357e513f399d3359d4b764acf6bd1e19a659c /gst/rtp/gstrtpmp4vpay.c
parent2187906ae855b87d667a8d75c2f8aacda00cfbf1 (diff)
gst/rtp/gstrtpmp4vpay.c: First set options, then set caps or else the baseclass will not know about the options, duh.
Original commit message from CVS: * gst/rtp/gstrtpmp4vpay.c: (gst_rtp_mp4v_pay_setcaps): First set options, then set caps or else the baseclass will not know about the options, duh.
Diffstat (limited to 'gst/rtp/gstrtpmp4vpay.c')
-rw-r--r--gst/rtp/gstrtpmp4vpay.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/rtp/gstrtpmp4vpay.c b/gst/rtp/gstrtpmp4vpay.c
index b8af1bef..f08f10fb 100644
--- a/gst/rtp/gstrtpmp4vpay.c
+++ b/gst/rtp/gstrtpmp4vpay.c
@@ -204,6 +204,9 @@ gst_rtp_mp4v_pay_setcaps (GstBaseRTPPayload * payload, GstCaps * caps)
rtpmp4vpay = GST_RTP_MP4V_PAY (payload);
+ gst_basertppayload_set_options (payload, "video", TRUE, "MP4V-ES",
+ rtpmp4vpay->rate);
+
structure = gst_caps_get_structure (caps, 0);
codec_info = gst_structure_get_value (structure, "codec_info");
if (codec_info) {
@@ -233,9 +236,6 @@ gst_rtp_mp4v_pay_setcaps (GstBaseRTPPayload * payload, GstCaps * caps)
}
done:
- gst_basertppayload_set_options (payload, "video", TRUE, "MP4V-ES",
- rtpmp4vpay->rate);
-
return TRUE;
}