Index: gst/rtsp/gstrtspsrc.c
===================================================================
RCS file: /cvs/gstreamer/gst-plugins-good/gst/rtsp/gstrtspsrc.c,v
retrieving revision 1.148
diff -c -r1.148 gstrtspsrc.c
*** gst/rtsp/gstrtspsrc.c	27 Nov 2008 11:22:56 -0000	1.148
--- gst/rtsp/gstrtspsrc.c	14 Dec 2008 00:42:47 -0000
***************
*** 1022,1027 ****
--- 1022,1042 ----
        g_strfreev (pairs);
      }
    }
+   if (media->attributes->len > 0) {
+     guint i;
+     GST_DEBUG ( "sdp media attributes to caps:");
+     for (i = 0; i < media->attributes->len; i++) {
+       GstSDPAttribute *attr =
+         &g_array_index (media->attributes, GstSDPAttribute, i);
+       GST_DEBUG ("adding caps: %s=%s", attr->key, attr->value); 
+       if (!strcmp("width",attr->key) || !strcmp("height",attr->key)) {
+         gst_structure_set (s, attr->key, G_TYPE_UINT, atoi(attr->value), NULL);
+       } else {
+         gst_structure_set (s, attr->key, G_TYPE_STRING, attr->value, NULL);
+       }
+     }
+   }
+ 
    return caps;
  
    /* ERRORS */
