gmyth-stream/gmemcoder/src/gmencoder.c
branchtrunk
changeset 622 4691abcf4f45
parent 616 176270f861b4
child 634 43f66895cc86
     1.1 --- a/gmyth-stream/gmemcoder/src/gmencoder.c	Tue May 01 22:45:58 2007 +0100
     1.2 +++ b/gmyth-stream/gmemcoder/src/gmencoder.c	Thu May 03 14:39:25 2007 +0100
     1.3 @@ -692,9 +692,9 @@
     1.4  
     1.5      //Link bins with mux
     1.6      aux_pad = gst_element_get_pad (abin, "src");
     1.7 -    mux_pad = gst_element_get_pad (mux, "audio_0");
     1.8 +    mux_pad = gst_element_get_compatible_pad (mux, aux_pad, GST_PAD_CAPS (aux_pad));
     1.9      if (mux_pad == NULL) {
    1.10 -        g_warning ("Mux element no have audio_0 PAD");
    1.11 +        g_warning ("Mux element no have audio PAD");
    1.12          goto error;
    1.13      }
    1.14      GstPadLinkReturn ret = gst_pad_link (aux_pad, mux_pad);
    1.15 @@ -707,9 +707,9 @@
    1.16      gst_object_unref (mux_pad);
    1.17  
    1.18      aux_pad = gst_element_get_pad (vbin, "src");
    1.19 -    mux_pad = gst_element_get_pad (mux, "video_0");
    1.20 +    mux_pad = gst_element_get_compatible_pad (mux, aux_pad, GST_PAD_CAPS (aux_pad));
    1.21      if (mux_pad == NULL) {
    1.22 -        g_warning ("Mux element no have video_0 PAD");
    1.23 +        g_warning ("Mux element no have video PAD");
    1.24          goto error;
    1.25      }
    1.26      ret = gst_pad_link (aux_pad, mux_pad);